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

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

Issue 129063002: Update CSS classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/CSSRegionRule.h ('k') | Source/core/css/CSSStyleRule.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 f65b3667a4fbdb749e95d684a8094dcc76f94963..ca26dc3dcf03ff977b27e74a660c67e106be04c1 100644
--- a/Source/core/css/CSSRuleList.h
+++ b/Source/core/css/CSSRuleList.h
@@ -48,23 +48,23 @@ protected:
CSSRuleList();
};
-class StaticCSSRuleList : public CSSRuleList {
+class StaticCSSRuleList FINAL : public CSSRuleList {
public:
static PassRefPtr<StaticCSSRuleList> create() { return adoptRef(new StaticCSSRuleList()); }
- virtual void ref() { ++m_refCount; }
- virtual void deref();
+ virtual void ref() OVERRIDE { ++m_refCount; }
+ virtual void deref() OVERRIDE;
Vector<RefPtr<CSSRule> >& rules() { return m_rules; }
- virtual CSSStyleSheet* styleSheet() const { return 0; }
+ virtual CSSStyleSheet* styleSheet() const OVERRIDE { return 0; }
private:
StaticCSSRuleList();
- ~StaticCSSRuleList();
+ virtual ~StaticCSSRuleList();
- virtual unsigned length() const { return m_rules.size(); }
- virtual CSSRule* item(unsigned index) const { 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; }
Vector<RefPtr<CSSRule> > m_rules;
unsigned m_refCount;
@@ -72,17 +72,17 @@ private:
// The rule owns the live list.
template <class Rule>
-class LiveCSSRuleList : public CSSRuleList {
+class LiveCSSRuleList FINAL : public CSSRuleList {
public:
LiveCSSRuleList(Rule* rule) : m_rule(rule) { }
- virtual void ref() { m_rule->ref(); }
- virtual void deref() { m_rule->deref(); }
+ virtual void ref() OVERRIDE { m_rule->ref(); }
+ virtual void deref() OVERRIDE { m_rule->deref(); }
private:
- virtual unsigned length() const { return m_rule->length(); }
- virtual CSSRule* item(unsigned index) const { return m_rule->item(index); }
- virtual CSSStyleSheet* styleSheet() const { 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(); }
Rule* m_rule;
};
« no previous file with comments | « Source/core/css/CSSRegionRule.h ('k') | Source/core/css/CSSStyleRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698