| Index: Source/core/layout/LayoutBlock.h
|
| diff --git a/Source/core/layout/LayoutBlock.h b/Source/core/layout/LayoutBlock.h
|
| index db63c537ef0d0efcf318cc87f48b4281457d1106..61ae7a1f7750b1c592bc950f2367ba332f5dcd37 100644
|
| --- a/Source/core/layout/LayoutBlock.h
|
| +++ b/Source/core/layout/LayoutBlock.h
|
| @@ -58,7 +58,7 @@ public:
|
|
|
| protected:
|
| explicit LayoutBlock(ContainerNode*);
|
| - virtual ~LayoutBlock();
|
| + ~LayoutBlock() override;
|
|
|
| public:
|
| LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
|
| @@ -74,14 +74,14 @@ public:
|
| bool beingDestroyed() const { return m_beingDestroyed; }
|
|
|
| // These two functions are overridden for inline-block.
|
| - virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override final;
|
| - virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override;
|
| + LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const final;
|
| + int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override;
|
|
|
| LayoutUnit minLineHeightForReplacedObject(bool isFirstLine, LayoutUnit replacedHeight) const;
|
|
|
| LineBoxList* lineBoxes() { return &m_lineBoxes; }
|
|
|
| - virtual const char* name() const override;
|
| + const char* name() const override;
|
|
|
| protected:
|
| InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); }
|
| @@ -94,8 +94,8 @@ public:
|
| // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to LayoutBlockFlow
|
| virtual void deleteLineBoxTree();
|
|
|
| - virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) override;
|
| - virtual void removeChild(LayoutObject*) override;
|
| + void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) override;
|
| + void removeChild(LayoutObject*) override;
|
|
|
| virtual void layoutBlock(bool relayoutChildren);
|
|
|
| @@ -141,18 +141,18 @@ public:
|
| void markPositionedObjectsForLayout();
|
| // FIXME: Do we really need this to be virtual? It's just so we can call this on
|
| // LayoutBoxes without needed to check whether they're LayoutBlocks first.
|
| - virtual void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&) override final;
|
| + void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&) final;
|
|
|
| LayoutUnit textIndentOffset() const;
|
|
|
| - virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override;
|
| + PositionWithAffinity positionForPoint(const LayoutPoint&) override;
|
|
|
| LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const;
|
| LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const;
|
|
|
| LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const;
|
|
|
| - virtual void setSelectionState(SelectionState) override;
|
| + void setSelectionState(SelectionState) override;
|
|
|
| LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, const LayoutRect& logicalRect) const;
|
|
|
| @@ -164,7 +164,7 @@ public:
|
|
|
| void addContinuationWithOutline(LayoutInline*);
|
|
|
| - virtual LayoutBoxModelObject* virtualContinuation() const override final { return continuation(); }
|
| + LayoutBoxModelObject* virtualContinuation() const final { return continuation(); }
|
| bool isAnonymousBlockContinuation() const { return continuation() && isAnonymousBlock(); }
|
| LayoutInline* inlineElementContinuation() const;
|
|
|
| @@ -174,7 +174,7 @@ public:
|
| static LayoutBlock* createAnonymousWithParentAndDisplay(const LayoutObject*, EDisplay = BLOCK);
|
| LayoutBlock* createAnonymousBlock(EDisplay display = BLOCK) const { return createAnonymousWithParentAndDisplay(this, display); }
|
|
|
| - virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) const override;
|
| + LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) const override;
|
|
|
| int columnGap() const;
|
|
|
| @@ -194,7 +194,7 @@ public:
|
| LayoutUnit collapsedMarginBeforeForChild(const LayoutBox& child) const;
|
| LayoutUnit collapsedMarginAfterForChild(const LayoutBox& child) const;
|
|
|
| - virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
|
| + bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
|
|
|
| virtual void scrollbarsChanged(bool /*horizontalScrollbarChanged*/, bool /*verticalScrollbarChanged*/) { }
|
|
|
| @@ -219,12 +219,12 @@ public:
|
| bool recalcOverflowAfterStyleChange();
|
|
|
| protected:
|
| - virtual void willBeDestroyed() override;
|
| + void willBeDestroyed() override;
|
|
|
| void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&);
|
|
|
| - virtual void layout() override;
|
| - virtual bool updateImageLoadingPriorities() override final;
|
| + void layout() override;
|
| + bool updateImageLoadingPriorities() final;
|
|
|
| enum PositionedLayoutBehavior {
|
| DefaultLayout,
|
| @@ -239,7 +239,7 @@ protected:
|
|
|
| int beforeMarginInLineDirection(LineDirectionMode) const;
|
|
|
| - virtual void paint(const PaintInfo&, const LayoutPoint&) override;
|
| + void paint(const PaintInfo&, const LayoutPoint&) override;
|
| public:
|
| virtual void paintObject(const PaintInfo&, const LayoutPoint&);
|
| virtual void paintChildren(const PaintInfo&, const LayoutPoint&);
|
| @@ -251,14 +251,14 @@ public:
|
| protected:
|
| virtual void adjustInlineDirectionLineBounds(unsigned /* expansionOpportunityCount */, LayoutUnit& /* logicalLeft */, LayoutUnit& /* logicalWidth */) const { }
|
|
|
| - virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
|
| - virtual void computePreferredLogicalWidths() override;
|
| + void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
|
| + void computePreferredLogicalWidths() override;
|
|
|
| - virtual int firstLineBoxBaseline() const override;
|
| - virtual int inlineBlockBaseline(LineDirectionMode) const override;
|
| + int firstLineBoxBaseline() const override;
|
| + int inlineBlockBaseline(LineDirectionMode) const override;
|
| int lastLineBoxBaseline(LineDirectionMode) const;
|
|
|
| - virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
|
| + void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
|
|
|
| // Delay update scrollbar until finishDelayUpdateScrollInfo() will be
|
| // called. This function is used when a flexbox is laying out its
|
| @@ -270,8 +270,8 @@ protected:
|
|
|
| void updateScrollInfoAfterLayout();
|
|
|
| - virtual void styleWillChange(StyleDifference, const ComputedStyle& newStyle) override;
|
| - virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
|
| + void styleWillChange(StyleDifference, const ComputedStyle& newStyle) override;
|
| + void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
|
|
|
| virtual bool hasLineIfEmpty() const;
|
|
|
| @@ -286,21 +286,21 @@ protected:
|
| void addOverflowFromBlockChildren();
|
| void addVisualOverflowFromTheme();
|
|
|
| - virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffset) const override;
|
| + void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffset) const override;
|
|
|
| - virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
|
| + void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
|
|
|
| void updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, LayoutBox&);
|
|
|
| - virtual bool isInlineBlockOrInlineTable() const override final { return isInline() && isReplaced(); }
|
| + bool isInlineBlockOrInlineTable() const final { return isInline() && isReplaced(); }
|
|
|
| - virtual void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& childPaintInvalidationState) override;
|
| + void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& childPaintInvalidationState) override;
|
|
|
| private:
|
| - virtual LayoutObjectChildList* virtualChildren() override final { return children(); }
|
| - virtual const LayoutObjectChildList* virtualChildren() const override final { return children(); }
|
| + LayoutObjectChildList* virtualChildren() final { return children(); }
|
| + const LayoutObjectChildList* virtualChildren() const final { return children(); }
|
|
|
| - virtual bool isLayoutBlock() const override final { return true; }
|
| + bool isLayoutBlock() const final { return true; }
|
|
|
| void makeChildrenNonInline(LayoutObject* insertionPoint = nullptr);
|
|
|
| @@ -311,11 +311,11 @@ private:
|
|
|
| static void collapseAnonymousBlockChild(LayoutBlock* parent, LayoutBlock* child);
|
|
|
| - virtual void dirtyLinesFromChangedChild(LayoutObject* child) override final { m_lineBoxes.dirtyLinesFromChangedChild(this, child); }
|
| + void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dirtyLinesFromChangedChild(this, child); }
|
|
|
| - virtual void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* beforeChild) override;
|
| + void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* beforeChild) override;
|
|
|
| - virtual bool isSelfCollapsingBlock() const override;
|
| + bool isSelfCollapsingBlock() const override;
|
|
|
| void removeAnonymousWrappersIfRequired();
|
|
|
| @@ -326,7 +326,7 @@ private:
|
|
|
| bool tryLayoutDoingPositionedMovementOnly();
|
|
|
| - virtual bool avoidsFloats() const override { return true; }
|
| + bool avoidsFloats() const override { return true; }
|
|
|
| bool hitTestContents(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction);
|
| // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to LayoutBlockFlow
|
| @@ -338,21 +338,21 @@ private:
|
|
|
| // Obtains the nearest enclosing block (including this block) that contributes a first-line style to our inline
|
| // children.
|
| - virtual LayoutBlock* firstLineBlock() const override;
|
| + LayoutBlock* firstLineBlock() const override;
|
|
|
| - virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidationState* = nullptr) const override final;
|
| + LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidationState* = nullptr) const final;
|
|
|
| - virtual LayoutObject* hoverAncestor() const override final;
|
| - virtual void updateDragState(bool dragOn) override final;
|
| - virtual void childBecameNonInline(LayoutObject* child) override final;
|
| + LayoutObject* hoverAncestor() const final;
|
| + void updateDragState(bool dragOn) final;
|
| + void childBecameNonInline(LayoutObject* child) final;
|
|
|
| bool isSelectionRoot() const;
|
|
|
| - virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) const override;
|
| - virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override;
|
| + void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) const override;
|
| + void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override;
|
|
|
| private:
|
| - virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = nullptr) override final;
|
| + LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = nullptr) final;
|
| bool isInlineBoxWrapperActuallyChild() const;
|
|
|
| void markLinesDirtyInBlockRange(LayoutUnit logicalTop, LayoutUnit logicalBottom, RootInlineBox* highest = nullptr);
|
|
|