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

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

Issue 1650473002: Setting selectorText of PageRule accepts invalid selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 10 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 // 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 KeyframeRules, 53 KeyframeRules,
54 NoRules, // For parsing at-rules inside declaration lists 54 NoRules, // For parsing at-rules inside declaration lists
55 }; 55 };
56 56
57 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const CSSParserContext&); 57 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const CSSParserContext&);
58 static bool parseVariableValue(MutableStylePropertySet*, const AtomicString& propertyName, const String&, bool important, const CSSParserContext&); 58 static bool parseVariableValue(MutableStylePropertySet*, const AtomicString& propertyName, const String&, bool important, const CSSParserContext&);
59 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*); 59 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*);
60 static bool parseDeclarationList(MutableStylePropertySet*, const String&, co nst CSSParserContext&); 60 static bool parseDeclarationList(MutableStylePropertySet*, const String&, co nst CSSParserContext&);
61 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const String&, const CSSParserContext&, StyleSheetContents*, AllowedRulesType); 61 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const String&, const CSSParserContext&, StyleSheetContents*, AllowedRulesType);
62 static void parseStyleSheet(const String&, const CSSParserContext&, StyleShe etContents*); 62 static void parseStyleSheet(const String&, const CSSParserContext&, StyleShe etContents*);
63 static CSSSelectorList parsePageSelector(CSSParserTokenRange, StyleSheetCont ents*);
63 64
64 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&); 65 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&);
65 66
66 bool supportsDeclaration(CSSParserTokenRange&); 67 bool supportsDeclaration(CSSParserTokenRange&);
67 68
68 static void parseDeclarationListForInspector(const String&, const CSSParserC ontext&, CSSParserObserver&); 69 static void parseDeclarationListForInspector(const String&, const CSSParserC ontext&, CSSParserObserver&);
69 static void parseStyleSheetForInspector(const String&, const CSSParserContex t&, StyleSheetContents*, CSSParserObserver&); 70 static void parseStyleSheetForInspector(const String&, const CSSParserContex t&, StyleSheetContents*, CSSParserObserver&);
70 71
71 private: 72 private:
72 enum RuleListType { 73 enum RuleListType {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 111
111 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; 112 RawPtrWillBeMember<StyleSheetContents> m_styleSheet;
112 113
113 // For the inspector 114 // For the inspector
114 CSSParserObserverWrapper* m_observerWrapper; 115 CSSParserObserverWrapper* m_observerWrapper;
115 }; 116 };
116 117
117 } // namespace blink 118 } // namespace blink
118 119
119 #endif // CSSParserImpl_h 120 #endif // CSSParserImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698