chromium/third_party/blink/renderer/core/layout/text_decoration_offset.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/layout/text_decoration_offset.h"

#include "third_party/blink/renderer/core/layout/inline/fragment_item.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/paint/text_decoration_info.h"
#include "third_party/blink/renderer/core/style/computed_style.h"

namespace blink {

namespace {

int ComputeUnderlineOffsetAuto(const blink::FontMetrics& font_metrics,
                               float text_underline_offset,
                               float text_decoration_thickness,
                               bool is_fixed) {}

std::optional<int> ComputeUnderlineOffsetFromFont(
    const blink::FontMetrics& font_metrics,
    float text_underline_offset) {}

}  // namespace

int TextDecorationOffset::ComputeUnderlineOffsetForUnder(
    const Length& style_underline_offset,
    float computed_font_size,
    const SimpleFontData* font_data,
    float text_decoration_thickness,
    FontVerticalPositionType position_type) const {}

int TextDecorationOffset::ComputeUnderlineOffset(
    ResolvedUnderlinePosition underline_position,
    float computed_font_size,
    const SimpleFontData* font_data,
    const Length& style_underline_offset,
    float text_decoration_thickness) const {}

/* static */
float TextDecorationOffset::StyleUnderlineOffsetToPixels(
    const Length& style_underline_offset,
    float font_size) {}

}  // namespace blink