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

Unified Diff: Source/core/layout/LayoutButton.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/LayoutBoxModelObject.h ('k') | Source/core/layout/LayoutCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutButton.h
diff --git a/Source/core/layout/LayoutButton.h b/Source/core/layout/LayoutButton.h
index 2102a4b8c68f299c7238beeb8bc0a2b72e13327e..bd22f834d915c1e2cf691a6fa43e5c1d87736b0d 100644
--- a/Source/core/layout/LayoutButton.h
+++ b/Source/core/layout/LayoutButton.h
@@ -32,28 +32,28 @@ namespace blink {
class LayoutButton final : public LayoutFlexibleBox {
public:
explicit LayoutButton(Element*);
- virtual ~LayoutButton();
+ ~LayoutButton() override;
- virtual const char* name() const override { return "LayoutButton"; }
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutButton || LayoutFlexibleBox::isOfType(type); }
+ const char* name() const override { return "LayoutButton"; }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutButton || LayoutFlexibleBox::isOfType(type); }
- virtual bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
- virtual bool canCollapseAnonymousBlockChild() const override { return true; }
+ bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
+ bool canCollapseAnonymousBlockChild() const override { return true; }
- virtual void addChild(LayoutObject* newChild, LayoutObject *beforeChild = nullptr) override;
- virtual void removeChild(LayoutObject*) override;
- virtual void removeLeftoverAnonymousBlock(LayoutBlock*) override { }
- virtual bool createsAnonymousWrapper() const override { return true; }
+ void addChild(LayoutObject* newChild, LayoutObject *beforeChild = nullptr) override;
+ void removeChild(LayoutObject*) override;
+ void removeLeftoverAnonymousBlock(LayoutBlock*) override { }
+ bool createsAnonymousWrapper() const override { return true; }
- virtual bool hasControlClip() const override;
- virtual LayoutRect controlClipRect(const LayoutPoint&) const override;
+ bool hasControlClip() const override;
+ LayoutRect controlClipRect(const LayoutPoint&) const override;
- virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode) const override;
+ int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode) const override;
private:
- virtual void updateAnonymousChildStyle(const LayoutObject& child, ComputedStyle& childStyle) const override;
+ void updateAnonymousChildStyle(const LayoutObject& child, ComputedStyle& childStyle) const override;
- virtual bool hasLineIfEmpty() const override { return isHTMLInputElement(node()); }
+ bool hasLineIfEmpty() const override { return isHTMLInputElement(node()); }
LayoutBlock* m_inner;
};
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.h ('k') | Source/core/layout/LayoutCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698