Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: Source/core/layout/LayoutTableSection.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutTableRow.h ('k') | Source/core/layout/LayoutTestHelper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableSection.h
diff --git a/Source/core/layout/LayoutTableSection.h b/Source/core/layout/LayoutTableSection.h
index e508757487bcacc81822fa2afc495458c5c5c53e..e7c53dbae3d944cf5bb4b0309720780078a091cd 100644
--- a/Source/core/layout/LayoutTableSection.h
+++ b/Source/core/layout/LayoutTableSection.h
@@ -69,7 +69,7 @@ class LayoutTableRow;
class CORE_EXPORT LayoutTableSection final : public LayoutBox {
public:
LayoutTableSection(Element*);
- virtual ~LayoutTableSection();
+ ~LayoutTableSection() override;
LayoutTableRow* firstRow() const;
LayoutTableRow* lastRow() const;
@@ -77,9 +77,9 @@ public:
const LayoutObjectChildList* children() const { return &m_children; }
LayoutObjectChildList* children() { return &m_children; }
- virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
+ void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
- virtual int firstLineBoxBaseline() const override;
+ int firstLineBoxBaseline() const override;
void addCell(LayoutTableCell*, LayoutTableRow*);
@@ -218,12 +218,12 @@ public:
int distributeExtraLogicalHeightToRows(int extraLogicalHeight);
static LayoutTableSection* createAnonymousWithParent(const LayoutObject*);
- virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) const override
+ LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) const override
{
return createAnonymousWithParent(parent);
}
- virtual void paint(const PaintInfo&, const LayoutPoint&) override;
+ void paint(const PaintInfo&, const LayoutPoint&) override;
// Flip the rect so it aligns with the coordinates used by the rowPos and columnPos vectors.
LayoutRect logicalRectForWritingModeAndDirection(const LayoutRect&) const;
@@ -233,23 +233,23 @@ public:
HashSet<LayoutTableCell*>& overflowingCells() { return m_overflowingCells; }
bool hasMultipleCellLevels() { return m_hasMultipleCellLevels; }
- virtual const char* name() const override { return "LayoutTableSection"; }
+ const char* name() const override { return "LayoutTableSection"; }
protected:
- virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
- virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
+ void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
+ bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
private:
- virtual LayoutObjectChildList* virtualChildren() override { return children(); }
- virtual const LayoutObjectChildList* virtualChildren() const override { return children(); }
+ LayoutObjectChildList* virtualChildren() override { return children(); }
+ const LayoutObjectChildList* virtualChildren() const override { return children(); }
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTableSection || LayoutBox::isOfType(type); }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTableSection || LayoutBox::isOfType(type); }
- virtual void willBeRemovedFromTree() override;
+ void willBeRemovedFromTree() override;
- virtual void layout() override;
+ void layout() override;
- virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
+ void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
int borderSpacingForRow(unsigned row) const { return m_grid[row].rowLayoutObject ? table()->vBorderSpacing() : 0; }
« no previous file with comments | « Source/core/layout/LayoutTableRow.h ('k') | Source/core/layout/LayoutTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698