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

Side by Side Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Nits 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 namespace { 61 namespace {
62 62
63 using namespace blink; 63 using namespace blink;
64 64
65 static CSSParserContext parserContextForDocument(Document *document) 65 static CSSParserContext parserContextForDocument(Document *document)
66 { 66 {
67 return document ? CSSParserContext(*document, 0) : strictCSSParserContext(); 67 return document ? CSSParserContext(*document, 0) : strictCSSParserContext();
68 } 68 }
69 69
70 class StyleSheetHandler FINAL : public CSSParserObserver { 70 class StyleSheetHandler final : public CSSParserObserver {
71 public: 71 public:
72 StyleSheetHandler(const String& parsedText, Document* document, StyleSheetCo ntents* styleSheetContents, RuleSourceDataList* result) 72 StyleSheetHandler(const String& parsedText, Document* document, StyleSheetCo ntents* styleSheetContents, RuleSourceDataList* result)
73 : m_parsedText(parsedText) 73 : m_parsedText(parsedText)
74 , m_document(document) 74 , m_document(document)
75 , m_styleSheetContents(styleSheetContents) 75 , m_styleSheetContents(styleSheetContents)
76 , m_result(result) 76 , m_result(result)
77 , m_commentParser(parserContextForDocument(document)) 77 , m_commentParser(parserContextForDocument(document))
78 , m_propertyRangeStart(UINT_MAX) 78 , m_propertyRangeStart(UINT_MAX)
79 , m_selectorRangeStart(UINT_MAX) 79 , m_selectorRangeStart(UINT_MAX)
80 , m_commentRangeStart(UINT_MAX) 80 , m_commentRangeStart(UINT_MAX)
81 { 81 {
82 ASSERT(m_result); 82 ASSERT(m_result);
83 } 83 }
84 84
85 private: 85 private:
86 virtual void startRuleHeader(CSSRuleSourceData::Type, unsigned) OVERRIDE; 86 virtual void startRuleHeader(CSSRuleSourceData::Type, unsigned) override;
87 virtual void endRuleHeader(unsigned) OVERRIDE; 87 virtual void endRuleHeader(unsigned) override;
88 virtual void startSelector(unsigned) OVERRIDE; 88 virtual void startSelector(unsigned) override;
89 virtual void endSelector(unsigned) OVERRIDE; 89 virtual void endSelector(unsigned) override;
90 virtual void startRuleBody(unsigned) OVERRIDE; 90 virtual void startRuleBody(unsigned) override;
91 virtual void endRuleBody(unsigned, bool) OVERRIDE; 91 virtual void endRuleBody(unsigned, bool) override;
92 virtual void startProperty(unsigned) OVERRIDE; 92 virtual void startProperty(unsigned) override;
93 virtual void endProperty(bool, bool, unsigned, CSSParserError) OVERRIDE; 93 virtual void endProperty(bool, bool, unsigned, CSSParserError) override;
94 virtual void startComment(unsigned) OVERRIDE; 94 virtual void startComment(unsigned) override;
95 virtual void endComment(unsigned) OVERRIDE; 95 virtual void endComment(unsigned) override;
96 virtual void startMediaQueryExp(unsigned offset) OVERRIDE; 96 virtual void startMediaQueryExp(unsigned offset) override;
97 virtual void endMediaQueryExp(unsigned offset) OVERRIDE; 97 virtual void endMediaQueryExp(unsigned offset) override;
98 virtual void startMediaQuery() OVERRIDE; 98 virtual void startMediaQuery() override;
99 virtual void endMediaQuery() OVERRIDE; 99 virtual void endMediaQuery() override;
100 100
101 void addNewRuleToSourceTree(PassRefPtrWillBeRawPtr<CSSRuleSourceData>); 101 void addNewRuleToSourceTree(PassRefPtrWillBeRawPtr<CSSRuleSourceData>);
102 PassRefPtrWillBeRawPtr<CSSRuleSourceData> popRuleData(); 102 PassRefPtrWillBeRawPtr<CSSRuleSourceData> popRuleData();
103 template <typename CharacterType> inline void setRuleHeaderEnd(const Charact erType*, unsigned); 103 template <typename CharacterType> inline void setRuleHeaderEnd(const Charact erType*, unsigned);
104 void fixUnparsedPropertyRanges(CSSRuleSourceData*); 104 void fixUnparsedPropertyRanges(CSSRuleSourceData*);
105 105
106 const String& m_parsedText; 106 const String& m_parsedText;
107 Document* m_document; 107 Document* m_document;
108 StyleSheetContents* m_styleSheetContents; 108 StyleSheetContents* m_styleSheetContents;
109 RawPtrWillBeMember<RuleSourceDataList> m_result; 109 RawPtrWillBeMember<RuleSourceDataList> m_result;
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor) 1862 void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor)
1863 { 1863 {
1864 visitor->trace(m_element); 1864 visitor->trace(m_element);
1865 visitor->trace(m_ruleSourceData); 1865 visitor->trace(m_ruleSourceData);
1866 visitor->trace(m_inspectorStyle); 1866 visitor->trace(m_inspectorStyle);
1867 InspectorStyleSheetBase::trace(visitor); 1867 InspectorStyleSheetBase::trace(visitor);
1868 } 1868 }
1869 1869
1870 } // namespace blink 1870 } // namespace blink
1871 1871
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.h ('k') | Source/core/inspector/InspectorTimelineAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698