| 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 <memory> | 8 #include <memory> |
| 9 #include "core/CSSPropertyNames.h" | 9 #include "core/CSSPropertyNames.h" |
| 10 #include "core/css/CSSProperty.h" | 10 #include "core/css/CSSProperty.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const String&, | 77 const String&, |
| 78 const CSSParserContext*); | 78 const CSSParserContext*); |
| 79 static StyleRuleBase* ParseRule(const String&, | 79 static StyleRuleBase* ParseRule(const String&, |
| 80 const CSSParserContext*, | 80 const CSSParserContext*, |
| 81 StyleSheetContents*, | 81 StyleSheetContents*, |
| 82 AllowedRulesType); | 82 AllowedRulesType); |
| 83 static void ParseStyleSheet(const String&, | 83 static void ParseStyleSheet(const String&, |
| 84 const CSSParserContext*, | 84 const CSSParserContext*, |
| 85 StyleSheetContents*, | 85 StyleSheetContents*, |
| 86 bool defer_property_parsing = false); | 86 bool defer_property_parsing = false); |
| 87 static CSSSelectorList ParsePageSelector(CSSParserTokenRange, | 87 static CSSSelectorList ParsePageSelector(const CSSParserContext&, |
| 88 CSSParserTokenRange, |
| 88 StyleSheetContents*); | 89 StyleSheetContents*); |
| 89 | 90 |
| 90 static ImmutableStylePropertySet* ParseCustomPropertySet(CSSParserTokenRange); | 91 static ImmutableStylePropertySet* ParseCustomPropertySet(CSSParserTokenRange); |
| 91 | 92 |
| 92 static std::unique_ptr<Vector<double>> ParseKeyframeKeyList(const String&); | 93 static std::unique_ptr<Vector<double>> ParseKeyframeKeyList(const String&); |
| 93 | 94 |
| 94 bool SupportsDeclaration(CSSParserTokenRange&); | 95 bool SupportsDeclaration(CSSParserTokenRange&); |
| 95 | 96 |
| 96 static void ParseDeclarationListForInspector(const String&, | 97 static void ParseDeclarationListForInspector(const String&, |
| 97 const CSSParserContext*, | 98 const CSSParserContext*, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 164 |
| 164 // For the inspector | 165 // For the inspector |
| 165 CSSParserObserverWrapper* observer_wrapper_; | 166 CSSParserObserverWrapper* observer_wrapper_; |
| 166 | 167 |
| 167 Member<CSSLazyParsingState> lazy_state_; | 168 Member<CSSLazyParsingState> lazy_state_; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace blink | 171 } // namespace blink |
| 171 | 172 |
| 172 #endif // CSSParserImpl_h | 173 #endif // CSSParserImpl_h |
| OLD | NEW |