Chromium Code Reviews| Index: Source/core/rendering/RenderBlock.h |
| diff --git a/Source/core/rendering/RenderBlock.h b/Source/core/rendering/RenderBlock.h |
| index aaa309d9309bf65287db7f77a74af0ed3d0155e6..228ba78603d6b8b0c57e4503737ff665cae89c87 100644 |
| --- a/Source/core/rendering/RenderBlock.h |
| +++ b/Source/core/rendering/RenderBlock.h |
| @@ -102,7 +102,7 @@ public: |
| bool beingDestroyed() const { return m_beingDestroyed; } |
| // These two functions are overridden for inline-block. |
| - virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const; |
| + virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const FINAL; |
| virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const; |
| RenderLineBoxList* lineBoxes() { return &m_lineBoxes; } |
| @@ -158,7 +158,7 @@ public: |
| void markAllDescendantsWithFloatsForLayout(RenderBox* floatToRemove = 0, bool inLayout = true); |
| void markSiblingsWithFloatsForLayout(RenderBox* floatToRemove = 0); |
| void markPositionedObjectsForLayout(); |
| - virtual void markForPaginationRelayoutIfNeeded(); |
| + virtual void markForPaginationRelayoutIfNeeded() FINAL; |
| bool containsFloats() const { return m_floatingObjects && !m_floatingObjects->set().isEmpty(); } |
| bool containsFloat(RenderBox*) const; |
| @@ -230,7 +230,7 @@ public: |
| virtual VisiblePosition positionForPoint(const LayoutPoint&); |
| // Block flows subclass availableWidth to handle multi column layout (shrinking the width available to children when laying out.) |
| - virtual LayoutUnit availableLogicalWidth() const; |
| + virtual LayoutUnit availableLogicalWidth() const FINAL; |
| LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; |
| void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; |
| @@ -257,13 +257,13 @@ public: |
| void clearTruncation(); |
| void adjustRectForColumns(LayoutRect&) const; |
| - virtual void adjustForColumns(LayoutSize&, const LayoutPoint&) const; |
| + virtual void adjustForColumns(LayoutSize&, const LayoutPoint&) const FINAL; |
| void adjustForColumnRect(LayoutSize& offset, const LayoutPoint& locationInContainer) const; |
| void addContinuationWithOutline(RenderInline*); |
| bool paintsContinuationOutline(RenderInline*); |
| - virtual RenderBoxModelObject* virtualContinuation() const { return continuation(); } |
| + virtual RenderBoxModelObject* virtualContinuation() const FINAL { return continuation(); } |
| bool isAnonymousBlockContinuation() const { return continuation() && isAnonymousBlock(); } |
| RenderInline* inlineElementContinuation() const; |
| RenderBlock* blockElementContinuation() const; |
| @@ -586,34 +586,34 @@ private: |
| void computeExclusionShapeSize(); |
| void updateExclusionShapeInsideInfoAfterStyleChange(const ExclusionShapeValue*, const ExclusionShapeValue* oldExclusionShape); |
| #endif |
| - virtual RenderObjectChildList* virtualChildren() { return children(); } |
| - virtual const RenderObjectChildList* virtualChildren() const { return children(); } |
| + virtual RenderObjectChildList* virtualChildren() FINAL { return children(); } |
| + virtual const RenderObjectChildList* virtualChildren() const FINAL { return children(); } |
| virtual const char* renderName() const; |
| - virtual bool isRenderBlock() const { return true; } |
| - virtual bool isBlockFlow() const { return (!isInline() || isReplaced()) && !isTable(); } |
| - virtual bool isInlineBlockOrInlineTable() const { return isInline() && isReplaced(); } |
| + virtual bool isRenderBlock() const FINAL { return true; } |
|
esprehn
2013/04/20 05:51:46
It would be nice if you could add OVERRIDE FINAL o
|
| + virtual bool isBlockFlow() const FINAL { return (!isInline() || isReplaced()) && !isTable(); } |
| + virtual bool isInlineBlockOrInlineTable() const FINAL { return isInline() && isReplaced(); } |
| void makeChildrenNonInline(RenderObject* insertionPoint = 0); |
| virtual void removeLeftoverAnonymousBlock(RenderBlock* child); |
| static void collapseAnonymousBoxChild(RenderBlock* parent, RenderObject* child); |
| - virtual void dirtyLinesFromChangedChild(RenderObject* child) { m_lineBoxes.dirtyLinesFromChangedChild(this, child); } |
| + virtual void dirtyLinesFromChangedChild(RenderObject* child) FINAL { m_lineBoxes.dirtyLinesFromChangedChild(this, child); } |
| void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChild); |
| void addChildIgnoringContinuation(RenderObject* newChild, RenderObject* beforeChild); |
| void addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild); |
| - virtual void addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild = 0); |
| + virtual void addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild = 0) FINAL; |
| - virtual bool isSelfCollapsingBlock() const; |
| + virtual bool isSelfCollapsingBlock() const FINAL; |
| - virtual LayoutUnit collapsedMarginBefore() const { return maxPositiveMarginBefore() - maxNegativeMarginBefore(); } |
| - virtual LayoutUnit collapsedMarginAfter() const { return maxPositiveMarginAfter() - maxNegativeMarginAfter(); } |
| + virtual LayoutUnit collapsedMarginBefore() const FINAL { return maxPositiveMarginBefore() - maxNegativeMarginBefore(); } |
| + virtual LayoutUnit collapsedMarginAfter() const FINAL { return maxPositiveMarginAfter() - maxNegativeMarginAfter(); } |
| - virtual void repaintOverhangingFloats(bool paintAllDescendants) OVERRIDE; |
| + virtual void repaintOverhangingFloats(bool paintAllDescendants) OVERRIDE FINAL; |
| void layoutBlockChildren(bool relayoutChildren, LayoutUnit& maxFloatLogicalBottom); |
| void layoutInlineChildren(bool relayoutChildren, LayoutUnit& repaintLogicalTop, LayoutUnit& repaintLogicalBottom); |
| @@ -894,8 +894,8 @@ private: |
| LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::FloatLeftRight) const; |
| LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit) const; |
| - virtual bool hitTestColumns(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
| - virtual bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
| + virtual bool hitTestColumns(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) FINAL; |
| + virtual bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) FINAL; |
| bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset); |
| virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& locationInContainer, const LayoutPoint& accumulatedOffset); |
| @@ -908,18 +908,18 @@ private: |
| // children. |
| virtual RenderBlock* firstLineBlock() const; |
| - virtual LayoutRect rectWithOutlineForRepaint(const RenderLayerModelObject* repaintContainer, LayoutUnit outlineWidth) const OVERRIDE; |
| - virtual RenderStyle* outlineStyleForRepaint() const; |
| + virtual LayoutRect rectWithOutlineForRepaint(const RenderLayerModelObject* repaintContainer, LayoutUnit outlineWidth) const OVERRIDE FINAL; |
| + virtual RenderStyle* outlineStyleForRepaint() const FINAL; |
| - virtual RenderObject* hoverAncestor() const; |
| - virtual void updateDragState(bool dragOn); |
| - virtual void childBecameNonInline(RenderObject* child); |
| + virtual RenderObject* hoverAncestor() const FINAL; |
| + virtual void updateDragState(bool dragOn) FINAL; |
| + virtual void childBecameNonInline(RenderObject* child) FINAL; |
| - virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* repaintContainer, bool /*clipToVisibleContent*/) OVERRIDE |
| + virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* repaintContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL |
| { |
| return selectionGapRectsForRepaint(repaintContainer); |
| } |
| - virtual bool shouldPaintSelectionGaps() const; |
| + virtual bool shouldPaintSelectionGaps() const FINAL; |
| bool isSelectionRoot() const; |
| GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
| LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); |
| @@ -940,7 +940,7 @@ private: |
| void paintContinuationOutlines(PaintInfo&, const LayoutPoint&); |
| - virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = 0); |
| + virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = 0) FINAL; |
| void adjustPointToColumnContents(LayoutPoint&) const; |