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

Unified Diff: Source/core/layout/LayoutRuby.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/LayoutReplica.h ('k') | Source/core/layout/LayoutRubyBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutRuby.h
diff --git a/Source/core/layout/LayoutRuby.h b/Source/core/layout/LayoutRuby.h
index 9b68838bc1a908f66d611f2e58e7ed611c296d7d..7867a5dea14a19f4996731356c3196c6f9180457 100644
--- a/Source/core/layout/LayoutRuby.h
+++ b/Source/core/layout/LayoutRuby.h
@@ -54,39 +54,39 @@ namespace blink {
class LayoutRubyAsInline final : public LayoutInline {
public:
LayoutRubyAsInline(Element*);
- virtual ~LayoutRubyAsInline();
+ ~LayoutRubyAsInline() override;
- virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
- virtual void removeChild(LayoutObject* child) override;
+ void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
+ void removeChild(LayoutObject* child) override;
- virtual const char* name() const override { return "LayoutRuby (inline)"; }
+ const char* name() const override { return "LayoutRuby (inline)"; }
protected:
- virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
+ void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
private:
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectRuby || LayoutInline::isOfType(type); }
- virtual bool createsAnonymousWrapper() const override { return true; }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectRuby || LayoutInline::isOfType(type); }
+ bool createsAnonymousWrapper() const override { return true; }
};
// <ruby> when used as 'display:block' or 'display:inline-block'
class LayoutRubyAsBlock final : public LayoutBlockFlow {
public:
LayoutRubyAsBlock(Element*);
- virtual ~LayoutRubyAsBlock();
+ ~LayoutRubyAsBlock() override;
- virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
- virtual void removeChild(LayoutObject* child) override;
+ void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
+ void removeChild(LayoutObject* child) override;
- virtual const char* name() const override { return "LayoutRuby (block)"; }
+ const char* name() const override { return "LayoutRuby (block)"; }
protected:
- virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
+ void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
private:
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectRuby || LayoutBlockFlow::isOfType(type); }
- virtual bool createsAnonymousWrapper() const override { return true; }
- virtual void removeLeftoverAnonymousBlock(LayoutBlock*) override { ASSERT_NOT_REACHED(); }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectRuby || LayoutBlockFlow::isOfType(type); }
+ bool createsAnonymousWrapper() const override { return true; }
+ void removeLeftoverAnonymousBlock(LayoutBlock*) override { ASSERT_NOT_REACHED(); }
};
} // namespace blink
« no previous file with comments | « Source/core/layout/LayoutReplica.h ('k') | Source/core/layout/LayoutRubyBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698