OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |