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

Side by Side Diff: Source/core/css/CSSStyleSheet.cpp

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 unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSStyleSheet.h ('k') | Source/core/css/CSSSupportsRule.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 27 matching lines...) Expand all
38 #include "core/dom/Node.h" 38 #include "core/dom/Node.h"
39 #include "core/frame/UseCounter.h" 39 #include "core/frame/UseCounter.h"
40 #include "core/html/HTMLStyleElement.h" 40 #include "core/html/HTMLStyleElement.h"
41 #include "core/inspector/InspectorInstrumentation.h" 41 #include "core/inspector/InspectorInstrumentation.h"
42 #include "core/svg/SVGStyleElement.h" 42 #include "core/svg/SVGStyleElement.h"
43 #include "platform/weborigin/SecurityOrigin.h" 43 #include "platform/weborigin/SecurityOrigin.h"
44 #include "wtf/text/StringBuilder.h" 44 #include "wtf/text/StringBuilder.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class StyleSheetCSSRuleList FINAL : public CSSRuleList { 48 class StyleSheetCSSRuleList final : public CSSRuleList {
49 public: 49 public:
50 static PassOwnPtrWillBeRawPtr<StyleSheetCSSRuleList> create(CSSStyleSheet* s heet) 50 static PassOwnPtrWillBeRawPtr<StyleSheetCSSRuleList> create(CSSStyleSheet* s heet)
51 { 51 {
52 return adoptPtrWillBeNoop(new StyleSheetCSSRuleList(sheet)); 52 return adoptPtrWillBeNoop(new StyleSheetCSSRuleList(sheet));
53 } 53 }
54 54
55 virtual void trace(Visitor* visitor) OVERRIDE 55 virtual void trace(Visitor* visitor) override
56 { 56 {
57 visitor->trace(m_styleSheet); 57 visitor->trace(m_styleSheet);
58 CSSRuleList::trace(visitor); 58 CSSRuleList::trace(visitor);
59 } 59 }
60 60
61 private: 61 private:
62 StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { } 62 StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { }
63 63
64 #if !ENABLE(OILPAN) 64 #if !ENABLE(OILPAN)
65 virtual void ref() OVERRIDE { m_styleSheet->ref(); } 65 virtual void ref() override { m_styleSheet->ref(); }
66 virtual void deref() OVERRIDE { m_styleSheet->deref(); } 66 virtual void deref() override { m_styleSheet->deref(); }
67 #endif 67 #endif
68 68
69 virtual unsigned length() const OVERRIDE { return m_styleSheet->length(); } 69 virtual unsigned length() const override { return m_styleSheet->length(); }
70 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_styleSheet-> item(index); } 70 virtual CSSRule* item(unsigned index) const override { return m_styleSheet-> item(index); }
71 71
72 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_styleSheet; } 72 virtual CSSStyleSheet* styleSheet() const override { return m_styleSheet; }
73 73
74 RawPtrWillBeMember<CSSStyleSheet> m_styleSheet; 74 RawPtrWillBeMember<CSSStyleSheet> m_styleSheet;
75 }; 75 };
76 76
77 #if ENABLE(ASSERT) 77 #if ENABLE(ASSERT)
78 static bool isAcceptableCSSStyleSheetParent(Node* parentNode) 78 static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
79 { 79 {
80 // Only these nodes can be parents of StyleSheets, and they need to call 80 // Only these nodes can be parents of StyleSheets, and they need to call
81 // clearOwnerNode() when moved out of document. 81 // clearOwnerNode() when moved out of document.
82 // Destruction of the style sheet counts as being "moved out of the 82 // Destruction of the style sheet counts as being "moved out of the
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 visitor->trace(m_mediaQueries); 459 visitor->trace(m_mediaQueries);
460 visitor->trace(m_ownerNode); 460 visitor->trace(m_ownerNode);
461 visitor->trace(m_ownerRule); 461 visitor->trace(m_ownerRule);
462 visitor->trace(m_mediaCSSOMWrapper); 462 visitor->trace(m_mediaCSSOMWrapper);
463 visitor->trace(m_childRuleCSSOMWrappers); 463 visitor->trace(m_childRuleCSSOMWrappers);
464 visitor->trace(m_ruleListCSSOMWrapper); 464 visitor->trace(m_ruleListCSSOMWrapper);
465 StyleSheet::trace(visitor); 465 StyleSheet::trace(visitor);
466 } 466 }
467 467
468 } // namespace blink 468 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleSheet.h ('k') | Source/core/css/CSSSupportsRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698