| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 static bool parseValue(MutableStylePropertySet*, | 61 static bool parseValue(MutableStylePropertySet*, |
| 62 CSSPropertyID, | 62 CSSPropertyID, |
| 63 const String&, | 63 const String&, |
| 64 bool important, | 64 bool important, |
| 65 const CSSParserContext&); | 65 const CSSParserContext&); |
| 66 static bool parseVariableValue(MutableStylePropertySet*, | 66 static bool parseVariableValue(MutableStylePropertySet*, |
| 67 const AtomicString& propertyName, | 67 const AtomicString& propertyName, |
| 68 const String&, | 68 const String&, |
| 69 bool important, | 69 bool important, |
| 70 const CSSParserContext&); | 70 const CSSParserContext&, |
| 71 bool isAnimationTainted); |
| 71 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, | 72 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, |
| 72 Element*); | 73 Element*); |
| 73 static bool parseDeclarationList(MutableStylePropertySet*, | 74 static bool parseDeclarationList(MutableStylePropertySet*, |
| 74 const String&, | 75 const String&, |
| 75 const CSSParserContext&); | 76 const CSSParserContext&); |
| 76 static StyleRuleBase* parseRule(const String&, | 77 static StyleRuleBase* parseRule(const String&, |
| 77 const CSSParserContext&, | 78 const CSSParserContext&, |
| 78 StyleSheetContents*, | 79 StyleSheetContents*, |
| 79 AllowedRulesType); | 80 AllowedRulesType); |
| 80 static void parseStyleSheet(const String&, | 81 static void parseStyleSheet(const String&, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 CSSParserTokenRange block); | 134 CSSParserTokenRange block); |
| 134 | 135 |
| 135 void consumeDeclarationList(CSSParserTokenRange, StyleRule::RuleType); | 136 void consumeDeclarationList(CSSParserTokenRange, StyleRule::RuleType); |
| 136 void consumeDeclaration(CSSParserTokenRange, StyleRule::RuleType); | 137 void consumeDeclaration(CSSParserTokenRange, StyleRule::RuleType); |
| 137 void consumeDeclarationValue(CSSParserTokenRange, | 138 void consumeDeclarationValue(CSSParserTokenRange, |
| 138 CSSPropertyID, | 139 CSSPropertyID, |
| 139 bool important, | 140 bool important, |
| 140 StyleRule::RuleType); | 141 StyleRule::RuleType); |
| 141 void consumeVariableValue(CSSParserTokenRange, | 142 void consumeVariableValue(CSSParserTokenRange, |
| 142 const AtomicString& propertyName, | 143 const AtomicString& propertyName, |
| 143 bool important); | 144 bool important, |
| 145 bool isAnimationTainted); |
| 144 | 146 |
| 145 static std::unique_ptr<Vector<double>> consumeKeyframeKeyList( | 147 static std::unique_ptr<Vector<double>> consumeKeyframeKeyList( |
| 146 CSSParserTokenRange); | 148 CSSParserTokenRange); |
| 147 | 149 |
| 148 // FIXME: Can we build StylePropertySets directly? | 150 // FIXME: Can we build StylePropertySets directly? |
| 149 // FIXME: Investigate using a smaller inline buffer | 151 // FIXME: Investigate using a smaller inline buffer |
| 150 HeapVector<CSSProperty, 256> m_parsedProperties; | 152 HeapVector<CSSProperty, 256> m_parsedProperties; |
| 151 const CSSParserContext& m_context; | 153 const CSSParserContext& m_context; |
| 152 | 154 |
| 153 Member<StyleSheetContents> m_styleSheet; | 155 Member<StyleSheetContents> m_styleSheet; |
| 154 | 156 |
| 155 // For the inspector | 157 // For the inspector |
| 156 CSSParserObserverWrapper* m_observerWrapper; | 158 CSSParserObserverWrapper* m_observerWrapper; |
| 157 }; | 159 }; |
| 158 | 160 |
| 159 } // namespace blink | 161 } // namespace blink |
| 160 | 162 |
| 161 #endif // CSSParserImpl_h | 163 #endif // CSSParserImpl_h |
| OLD | NEW |