#include "third_party/blink/renderer/core/layout/layout_replaced.h"
#include "base/memory/scoped_refptr.h"
#include "third_party/blink/renderer/core/editing/position_with_affinity.h"
#include "third_party/blink/renderer/core/html/html_dimension.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/layout/fragmentation_utils.h"
#include "third_party/blink/renderer/core/layout/geometry/logical_offset.h"
#include "third_party/blink/renderer/core/layout/geometry/logical_size.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_offset.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_rect.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_size.h"
#include "third_party/blink/renderer/core/layout/inline/inline_cursor.h"
#include "third_party/blink/renderer/core/layout/intrinsic_sizing_info.h"
#include "third_party/blink/renderer/core/layout/layout_block.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/layout/layout_inline.h"
#include "third_party/blink/renderer/core/layout/layout_video.h"
#include "third_party/blink/renderer/core/layout/layout_view_transition_content.h"
#include "third_party/blink/renderer/core/layout/length_utils.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/paint/paint_info.h"
#include "third_party/blink/renderer/core/paint/paint_layer.h"
#include "third_party/blink/renderer/core/paint/replaced_painter.h"
#include "third_party/blink/renderer/core/style/basic_shapes.h"
#include "third_party/blink/renderer/core/style/computed_style_base_constants.h"
#include "third_party/blink/renderer/platform/geometry/layout_point.h"
#include "third_party/blink/renderer/platform/geometry/layout_unit.h"
#include "third_party/blink/renderer/platform/geometry/length_functions.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size_f.h"
namespace blink {
const int LayoutReplaced::kDefaultWidth = …;
const int LayoutReplaced::kDefaultHeight = …;
LayoutReplaced::LayoutReplaced(Element* element)
: … { … }
LayoutReplaced::LayoutReplaced(Element* element,
const PhysicalSize& intrinsic_size)
: … { … }
LayoutReplaced::~LayoutReplaced() = default;
void LayoutReplaced::WillBeDestroyed() { … }
void LayoutReplaced::StyleDidChange(StyleDifference diff,
const ComputedStyle* old_style) { … }
void LayoutReplaced::IntrinsicSizeChanged() { … }
void LayoutReplaced::Paint(const PaintInfo& paint_info) const { … }
static inline bool LayoutObjectHasIntrinsicAspectRatio(
const LayoutObject* layout_object) { … }
void LayoutReplaced::AddVisualEffectOverflow() { … }
void LayoutReplaced::RecalcVisualOverflow() { … }
std::optional<PhysicalRect> LayoutReplaced::ComputeObjectViewBoxRect(
const PhysicalSize* overridden_intrinsic_size) const { … }
PhysicalRect LayoutReplaced::ComputeReplacedContentRect(
const PhysicalRect& base_content_rect,
const PhysicalSize* overridden_intrinsic_size) const { … }
PhysicalRect LayoutReplaced::ComputeObjectFitAndPositionRect(
const PhysicalRect& base_content_rect,
const PhysicalSize* overridden_intrinsic_size) const { … }
PhysicalRect LayoutReplaced::ReplacedContentRect() const { … }
PhysicalRect LayoutReplaced::ReplacedContentRectFrom(
const PhysicalRect& base_content_rect) const { … }
PhysicalRect LayoutReplaced::PreSnappedRectForPersistentSizing(
const PhysicalRect& rect) { … }
void LayoutReplaced::ComputeIntrinsicSizingInfo(
IntrinsicSizingInfo& intrinsic_sizing_info) const { … }
static std::pair<LayoutUnit, LayoutUnit> SelectionTopAndBottom(
const LayoutReplaced& layout_replaced) { … }
PositionWithAffinity LayoutReplaced::PositionForPoint(
const PhysicalOffset& point) const { … }
PhysicalRect LayoutReplaced::LocalSelectionVisualRect() const { … }
bool LayoutReplaced::RespectsCSSOverflow() const { … }
bool LayoutReplaced::ClipsToContentBox() const { … }
}