chromium/third_party/blink/renderer/core/layout/baseline_utils.h

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

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_BASELINE_UTILS_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_BASELINE_UTILS_H_

#include "third_party/blink/renderer/platform/text/writing_direction_mode.h"

namespace blink {

enum class BaselineGroup {};

// Determines the writing-mode to read a baseline from a fragment.
inline WritingMode DetermineBaselineWritingMode(
    const WritingDirectionMode container_writing_direction,
    const WritingMode child_writing_mode,
    bool is_parallel_context) {}

// There are potentially two different baseline groups for a column/row.
// See: https://www.w3.org/TR/css-align-3/#baseline-sharing-group
//
// We label these "major"/"minor" to separate them. The "major" group should be
// aligned to the appropriate "start" axis.
inline BaselineGroup DetermineBaselineGroup(
    const WritingDirectionMode container_writing_direction,
    const WritingMode baseline_writing_mode,
    bool is_parallel_context,
    bool is_last_baseline,
    bool is_flipped = false) {}

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_BASELINE_UTILS_H_