chromium/third_party/blink/renderer/core/layout/shapes/shape_outside_info.cc

/*
 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above
 *    copyright notice, this list of conditions and the following
 *    disclaimer.
 * 2. Redistributions in binary form must reproduce the above
 *    copyright notice, this list of conditions and the following
 *    disclaimer in the documentation and/or other materials
 *    provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

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

#include <memory>

#include "base/auto_reset.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/layout/geometry/logical_rect.h"
#include "third_party/blink/renderer/core/layout/geometry/writing_mode_converter.h"
#include "third_party/blink/renderer/core/layout/layout_block_flow.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"
#include "third_party/blink/renderer/core/layout/layout_image.h"
#include "third_party/blink/renderer/core/paint/rounded_border_geometry.h"
#include "third_party/blink/renderer/platform/geometry/length_functions.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"

namespace blink {

namespace {

gfx::Rect ToPixelSnappedLogicalRect(const LogicalRect& rect) {}

// Unlike LayoutBoxModelObject::PhysicalBorderToLogical(), this function
// applies container's WritingDirectionMode.
PhysicalToLogicalGetter<LayoutUnit, LayoutBox> LogicalBorder(
    const LayoutBox& layout_box,
    const ComputedStyle& container_style) {}

// Unlike LayoutBoxModelObject::PhysicalPaddingToLogical(), this function
// applies container's WritingDirectionMode.
PhysicalToLogicalGetter<LayoutUnit, LayoutBox> LogicalPadding(
    const LayoutBox& layout_box,
    const ComputedStyle& container_style) {}

}  // namespace

CSSBoxType ReferenceBox(const ShapeValue& shape_value) {}

void ShapeOutsideInfo::SetReferenceBoxLogicalSize(
    LogicalSize new_reference_box_logical_size,
    LogicalSize margin_size) {}

void ShapeOutsideInfo::SetPercentageResolutionInlineSize(
    LayoutUnit percentage_resolution_inline_size) {}

static bool CheckShapeImageOrigin(Document& document,
                                  const StyleImage& style_image) {}

static PhysicalRect GetShapeImagePhysicalMarginRect(
    const LayoutBox& layout_box,
    const PhysicalSize& reference_physical_size) {}

static LogicalRect GetShapeImageMarginRect(
    const LayoutBox& layout_box,
    const LogicalSize& reference_box_logical_size) {}

PhysicalSize ShapeOutsideInfo::ReferenceBoxPhysicalSize() const {}

std::unique_ptr<Shape> ShapeOutsideInfo::CreateShapeForImage(
    StyleImage* style_image,
    float shape_image_threshold,
    WritingMode writing_mode,
    float margin) const {}

const Shape& ShapeOutsideInfo::ComputedShape() const {}

LayoutUnit ShapeOutsideInfo::BlockStartOffset() const {}

LayoutUnit ShapeOutsideInfo::InlineStartOffset() const {}

bool ShapeOutsideInfo::IsEnabledFor(const LayoutBox& box) {}

PhysicalRect ShapeOutsideInfo::ComputedShapePhysicalBoundingBox() const {}

gfx::PointF ShapeOutsideInfo::ShapeToLayoutObjectPoint(
    gfx::PointF point) const {}

// static
ShapeOutsideInfo::InfoMap& ShapeOutsideInfo::GetInfoMap() {}

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

}  // namespace blink