chromium/third_party/blink/renderer/core/layout/list/unpositioned_list_marker.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/list/unpositioned_list_marker.h"

#include "third_party/blink/renderer/core/layout/box_fragment_builder.h"
#include "third_party/blink/renderer/core/layout/constraint_space.h"
#include "third_party/blink/renderer/core/layout/inline/fragment_items_builder.h"
#include "third_party/blink/renderer/core/layout/inline/physical_line_box_fragment.h"
#include "third_party/blink/renderer/core/layout/layout_result.h"
#include "third_party/blink/renderer/core/layout/list/layout_outside_list_marker.h"
#include "third_party/blink/renderer/core/layout/logical_box_fragment.h"

namespace blink {

UnpositionedListMarker::UnpositionedListMarker(LayoutOutsideListMarker* marker)
    :{}

UnpositionedListMarker::UnpositionedListMarker(const BlockNode& node)
    :{}

// Compute the inline offset of the marker, relative to the list item.
// The marker is relative to the border box of the list item and has nothing
// to do with the content offset.
// Open issue at https://github.com/w3c/csswg-drafts/issues/2361
LayoutUnit UnpositionedListMarker::InlineOffset(
    const LayoutUnit marker_inline_size) const {}

const LayoutResult* UnpositionedListMarker::Layout(
    const ConstraintSpace& parent_space,
    const ComputedStyle& parent_style,
    FontBaseline baseline_type) const {}

std::optional<LayoutUnit> UnpositionedListMarker::ContentAlignmentBaseline(
    const ConstraintSpace& space,
    FontBaseline baseline_type,
    const PhysicalFragment& content) const {}

void UnpositionedListMarker::AddToBox(
    const ConstraintSpace& space,
    FontBaseline baseline_type,
    const PhysicalFragment& content,
    const BoxStrut& border_scrollbar_padding,
    const LayoutResult& marker_layout_result,
    LayoutUnit content_baseline,
    LayoutUnit* block_offset,
    BoxFragmentBuilder* container_builder) const {}

void UnpositionedListMarker::AddToBoxWithoutLineBoxes(
    const ConstraintSpace& space,
    FontBaseline baseline_type,
    const LayoutResult& marker_layout_result,
    BoxFragmentBuilder* container_builder,
    LayoutUnit* intrinsic_block_size) const {}

// Find the opportunity for marker, and compare it to ListItem, then compute the
// diff as intruded offset.
LayoutUnit UnpositionedListMarker::ComputeIntrudedFloatOffset(
    const ConstraintSpace& space,
    const BoxFragmentBuilder* container_builder,
    const BoxStrut& border_scrollbar_padding,
    LayoutUnit marker_block_offset) const {}

#if DCHECK_IS_ON()
// TODO: Currently we haven't supported ::marker, so the margin-top of marker
// should always be zero. And this make us could resolve LI's BFC block-offset
// in BlockLayoutAlgorithm::PositionOrPropagateListMarker and
// BlockLayoutAlgorithm::PositionListMarkerWithoutLineBoxes without consider
// marker's margin-top.
void UnpositionedListMarker::CheckMargin() const {}
#endif

void UnpositionedListMarker::Trace(Visitor* visitor) const {}

}  // namespace blink