summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_block.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_block.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_block.h28
1 files changed, 12 insertions, 16 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_block.h b/chromium/third_party/blink/renderer/core/layout/layout_block.h
index 64c3ba8c89a..68f16211d48 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_block.h
+++ b/chromium/third_party/blink/renderer/core/layout/layout_block.h
@@ -142,6 +142,10 @@ class CORE_EXPORT LayoutBlock : public LayoutBox {
const char* GetName() const override;
+ virtual const NGPhysicalBoxFragment* CurrentFragment() const {
+ return nullptr;
+ }
+
protected:
// Insert a child correctly into the tree when |beforeDescendant| isn't a
// direct child of |this|. This happens e.g. when there's an anonymous block
@@ -395,6 +399,7 @@ class CORE_EXPORT LayoutBlock : public LayoutBox {
virtual void PaintChildren(const PaintInfo&,
const PhysicalOffset& paint_offset) const;
void UpdateAfterLayout() override;
+ MinMaxSizes PreferredLogicalWidths() const override;
protected:
virtual void AdjustInlineDirectionLineBounds(
@@ -402,10 +407,7 @@ class CORE_EXPORT LayoutBlock : public LayoutBox {
LayoutUnit& /* logicalLeft */,
LayoutUnit& /* logicalWidth */) const {}
- void ComputeIntrinsicLogicalWidths(
- LayoutUnit& min_logical_width,
- LayoutUnit& max_logical_width) const override;
- void ComputePreferredLogicalWidths() override;
+ MinMaxSizes ComputeIntrinsicLogicalWidths() const override;
void ComputeChildPreferredLogicalWidths(
LayoutObject& child,
LayoutUnit& min_preferred_logical_width,
@@ -414,17 +416,10 @@ class CORE_EXPORT LayoutBlock : public LayoutBox {
LayoutUnit FirstLineBoxBaseline() const override;
LayoutUnit InlineBlockBaseline(LineDirectionMode) const override;
- // This function disables the 'overflow' check in inlineBlockBaseline.
- // For 'inline-block', CSS says that the baseline is the bottom margin edge
- // if 'overflow' is not visible. But some descendant classes want to ignore
- // this condition.
- virtual bool ShouldIgnoreOverflowPropertyForInlineBlockBaseline() const {
- return false;
- }
-
- bool HitTestOverflowControl(HitTestResult&,
- const HitTestLocation&,
- const PhysicalOffset& adjusted_location) override;
+ bool HitTestOverflowControl(
+ HitTestResult&,
+ const HitTestLocation&,
+ const PhysicalOffset& adjusted_location) const override;
bool HitTestChildren(HitTestResult&,
const HitTestLocation&,
const PhysicalOffset& accumulated_offset,
@@ -482,6 +477,8 @@ class CORE_EXPORT LayoutBlock : public LayoutBox {
hit_test_action == kHitTestChildBlockBackground;
}
+ LayoutUnit EmptyLineBaseline(LineDirectionMode line_direction) const;
+
private:
LayoutObjectChildList* VirtualChildren() final { return Children(); }
const LayoutObjectChildList* VirtualChildren() const final {
@@ -558,7 +555,6 @@ class CORE_EXPORT LayoutBlock : public LayoutBox {
// in LayoutBlockRareData since they are
// set too frequently.
unsigned has_margin_after_quirk_ : 1;
- unsigned being_destroyed_ : 1;
unsigned has_markup_truncation_ : 1;
unsigned width_available_to_children_changed_ : 1;
unsigned height_available_to_children_changed_ : 1;