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

Unified Diff: Source/core/css/CSSRuleList.h

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 years, 2 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/css/CSSPageRule.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSRuleList.h
diff --git a/Source/core/css/CSSRuleList.h b/Source/core/css/CSSRuleList.h
index 91232954f21ea1a14bfc76005160e741905a1cef..0655b5fb6b70bfca0a195a42871344dca3f98081 100644
--- a/Source/core/css/CSSRuleList.h
+++ b/Source/core/css/CSSRuleList.h
@@ -56,7 +56,7 @@ protected:
CSSRuleList() { }
};
-class StaticCSSRuleList FINAL : public CSSRuleList {
+class StaticCSSRuleList final : public CSSRuleList {
public:
static PassRefPtrWillBeRawPtr<StaticCSSRuleList> create()
{
@@ -64,22 +64,22 @@ public:
}
#if !ENABLE(OILPAN)
- virtual void ref() OVERRIDE { ++m_refCount; }
- virtual void deref() OVERRIDE;
+ virtual void ref() override { ++m_refCount; }
+ virtual void deref() override;
#endif
WillBeHeapVector<RefPtrWillBeMember<CSSRule> >& rules() { return m_rules; }
- virtual CSSStyleSheet* styleSheet() const OVERRIDE { return 0; }
+ virtual CSSStyleSheet* styleSheet() const override { return 0; }
- virtual void trace(Visitor*) OVERRIDE;
+ virtual void trace(Visitor*) override;
private:
StaticCSSRuleList();
virtual ~StaticCSSRuleList();
- virtual unsigned length() const OVERRIDE { return m_rules.size(); }
- virtual CSSRule* item(unsigned index) const OVERRIDE { return index < m_rules.size() ? m_rules[index].get() : 0; }
+ virtual unsigned length() const override { return m_rules.size(); }
+ virtual CSSRule* item(unsigned index) const override { return index < m_rules.size() ? m_rules[index].get() : 0; }
WillBeHeapVector<RefPtrWillBeMember<CSSRule> > m_rules;
#if !ENABLE(OILPAN)
@@ -88,7 +88,7 @@ private:
};
template <class Rule>
-class LiveCSSRuleList FINAL : public CSSRuleList {
+class LiveCSSRuleList final : public CSSRuleList {
public:
static PassOwnPtrWillBeRawPtr<LiveCSSRuleList> create(Rule* rule)
{
@@ -96,11 +96,11 @@ public:
}
#if !ENABLE(OILPAN)
- virtual void ref() OVERRIDE { m_rule->ref(); }
- virtual void deref() OVERRIDE { m_rule->deref(); }
+ virtual void ref() override { m_rule->ref(); }
+ virtual void deref() override { m_rule->deref(); }
#endif
- virtual void trace(Visitor* visitor) OVERRIDE
+ virtual void trace(Visitor* visitor) override
{
visitor->trace(m_rule);
CSSRuleList::trace(visitor);
@@ -109,9 +109,9 @@ public:
private:
LiveCSSRuleList(Rule* rule) : m_rule(rule) { }
- virtual unsigned length() const OVERRIDE { return m_rule->length(); }
- virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(index); }
- virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentStyleSheet(); }
+ virtual unsigned length() const override { return m_rule->length(); }
+ virtual CSSRule* item(unsigned index) const override { return m_rule->item(index); }
+ virtual CSSStyleSheet* styleSheet() const override { return m_rule->parentStyleSheet(); }
RawPtrWillBeMember<Rule> m_rule;
};
« no previous file with comments | « Source/core/css/CSSPageRule.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698