chromium/third_party/blink/renderer/core/layout/exclusions/layout_opportunity.cc

// Copyright 2018 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/exclusions/layout_opportunity.h"

#include "third_party/blink/renderer/core/layout/constraint_space.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"
#include "third_party/blink/renderer/core/layout/shapes/shape_outside_info.h"

namespace blink {

namespace {

// Returns how far a line can "fit" into a given exclusion based on its shape
// area. If the exclusion does not obstruct the line, then the returned
// LineSegment will be "invalid".
LineSegment ExcludedSegment(const ExclusionArea& exclusion,
                            LayoutUnit bfc_block_offset,
                            LayoutUnit line_block_size) {}

// Returns if the given line block-size and offset intersects with the given
// exclusion.
bool IntersectsExclusion(const ExclusionArea& exclusion,
                         LayoutUnit bfc_block_offset,
                         LayoutUnit line_block_size) {}

}  // namespace

bool LayoutOpportunity::IsBlockDeltaBelowShapes(LayoutUnit block_delta) const {}

LayoutUnit LayoutOpportunity::ComputeLineLeftOffset(
    const ConstraintSpace& space,
    LayoutUnit line_block_size,
    LayoutUnit block_delta) const {}

LayoutUnit LayoutOpportunity::ComputeLineRightOffset(
    const ConstraintSpace& space,
    LayoutUnit line_block_size,
    LayoutUnit block_delta) const {}

bool LayoutOpportunity::operator==(const LayoutOpportunity& other) const {}

std::ostream& operator<<(std::ostream& ostream,
                         const LayoutOpportunity& opportunity) {}

}  // namespace blink