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

Unified Diff: Source/core/layout/LayoutCounter.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/LayoutButton.h ('k') | Source/core/layout/LayoutDeprecatedFlexibleBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutCounter.h
diff --git a/Source/core/layout/LayoutCounter.h b/Source/core/layout/LayoutCounter.h
index 28b1873bad4b32f0f6bf011af6a0d2c2d9370ec9..abbe300b256cd34174bd157177a20a7b22a9948d 100644
--- a/Source/core/layout/LayoutCounter.h
+++ b/Source/core/layout/LayoutCounter.h
@@ -32,7 +32,7 @@ class CounterNode;
class LayoutCounter final : public LayoutText {
public:
LayoutCounter(Document*, const CounterContent&);
- virtual ~LayoutCounter();
+ ~LayoutCounter() override;
static void destroyCounterNodes(LayoutObject&);
static void destroyCounterNode(LayoutObject&, const AtomicString& identifier);
@@ -42,14 +42,14 @@ public:
void updateCounter();
- virtual const char* name() const override { return "LayoutCounter"; }
+ const char* name() const override { return "LayoutCounter"; }
protected:
- virtual void willBeDestroyed() override;
+ void willBeDestroyed() override;
private:
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectCounter || LayoutText::isOfType(type); }
- virtual PassRefPtr<StringImpl> originalText() const override;
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectCounter || LayoutText::isOfType(type); }
+ PassRefPtr<StringImpl> originalText() const override;
// Removes the reference to the CounterNode associated with this layoutObject.
// This is used to cause a counter display update when the CounterNode tree changes.
« no previous file with comments | « Source/core/layout/LayoutButton.h ('k') | Source/core/layout/LayoutDeprecatedFlexibleBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698