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

Side by Side Diff: Source/core/css/parser/CSSParserImpl.h

Issue 1211813002: DevTools: allow injecting CSS rules without breaking styles sidebar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed. Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/parser/CSSParser.cpp ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSParserImpl_h 5 #ifndef CSSParserImpl_h
6 #define CSSParserImpl_h 6 #define CSSParserImpl_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/css/CSSProperty.h" 9 #include "core/css/CSSProperty.h"
10 #include "core/css/CSSPropertySourceData.h" 10 #include "core/css/CSSPropertySourceData.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*); 58 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*);
59 static bool parseDeclarationList(MutableStylePropertySet*, const String&, co nst CSSParserContext&); 59 static bool parseDeclarationList(MutableStylePropertySet*, const String&, co nst CSSParserContext&);
60 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const String&, const CSSParserContext&, AllowedRulesType); 60 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const String&, const CSSParserContext&, AllowedRulesType);
61 static void parseStyleSheet(const String&, const CSSParserContext&, StyleShe etContents*); 61 static void parseStyleSheet(const String&, const CSSParserContext&, StyleShe etContents*);
62 62
63 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&); 63 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&);
64 64
65 bool supportsDeclaration(CSSParserTokenRange&); 65 bool supportsDeclaration(CSSParserTokenRange&);
66 66
67 static void parseDeclarationListForInspector(const String&, const CSSParserC ontext&, CSSParserObserver&); 67 static void parseDeclarationListForInspector(const String&, const CSSParserC ontext&, CSSParserObserver&);
68 static void parseStyleSheetForInspector(const String&, const CSSParserContex t&, CSSParserObserver&); 68 static void parseStyleSheetForInspector(const String&, const CSSParserContex t&, StyleSheetContents*, CSSParserObserver&);
69 69
70 private: 70 private:
71 enum RuleListType { 71 enum RuleListType {
72 TopLevelRuleList, 72 TopLevelRuleList,
73 RegularRuleList, 73 RegularRuleList,
74 KeyframesRuleList 74 KeyframesRuleList
75 }; 75 };
76 76
77 // Returns whether the first encountered rule was valid 77 // Returns whether the first encountered rule was valid
78 template<typename T> 78 template<typename T>
(...skipping 30 matching lines...) Expand all
109 AtomicString m_defaultNamespace; 109 AtomicString m_defaultNamespace;
110 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; 110 RawPtrWillBeMember<StyleSheetContents> m_styleSheet;
111 111
112 // For the inspector 112 // For the inspector
113 CSSParserObserverWrapper* m_observerWrapper; 113 CSSParserObserverWrapper* m_observerWrapper;
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // CSSParserImpl_h 118 #endif // CSSParserImpl_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParser.cpp ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698