| 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 CSSParser_h | 5 #ifndef CSSParser_h |
| 6 #define CSSParser_h | 6 #define CSSParser_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/CSSPropertyNames.h" | 9 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 10 #include "core/css/StylePropertySet.h" | 11 #include "core/css/StylePropertySet.h" |
| 11 #include "core/css/parser/CSSParserContext.h" | 12 #include "core/css/parser/CSSParserContext.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class Color; | 16 class Color; |
| 17 class CSSParserObserver; | 17 class CSSParserObserver; |
| 18 class CSSParserTokenRange; | 18 class CSSParserTokenRange; |
| 19 class CSSSelectorList; | 19 class CSSSelectorList; |
| 20 class Element; | 20 class Element; |
| 21 class ImmutableStylePropertySet; | 21 class ImmutableStylePropertySet; |
| 22 class StyleRuleBase; | 22 class StyleRuleBase; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 33 static StyleRuleBase* ParseRule(const CSSParserContext*, | 33 static StyleRuleBase* ParseRule(const CSSParserContext*, |
| 34 StyleSheetContents*, | 34 StyleSheetContents*, |
| 35 const String&); | 35 const String&); |
| 36 static void ParseSheet(const CSSParserContext*, | 36 static void ParseSheet(const CSSParserContext*, |
| 37 StyleSheetContents*, | 37 StyleSheetContents*, |
| 38 const String&, | 38 const String&, |
| 39 bool defer_property_parsing = false); | 39 bool defer_property_parsing = false); |
| 40 static CSSSelectorList ParseSelector(const CSSParserContext*, | 40 static CSSSelectorList ParseSelector(const CSSParserContext*, |
| 41 StyleSheetContents*, | 41 StyleSheetContents*, |
| 42 const String&); | 42 const String&); |
| 43 static CSSSelectorList ParsePageSelector(const CSSParserContext*, | 43 static CSSSelectorList ParsePageSelector(const CSSParserContext&, |
| 44 StyleSheetContents*, | 44 StyleSheetContents*, |
| 45 const String&); | 45 const String&); |
| 46 static bool ParseDeclarationList(const CSSParserContext*, | 46 static bool ParseDeclarationList(const CSSParserContext*, |
| 47 MutableStylePropertySet*, | 47 MutableStylePropertySet*, |
| 48 const String&); | 48 const String&); |
| 49 | 49 |
| 50 static MutableStylePropertySet::SetResult ParseValue( | 50 static MutableStylePropertySet::SetResult ParseValue( |
| 51 MutableStylePropertySet*, | 51 MutableStylePropertySet*, |
| 52 CSSPropertyID unresolved_property, | 52 CSSPropertyID unresolved_property, |
| 53 const String&, | 53 const String&, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 MutableStylePropertySet*, | 106 MutableStylePropertySet*, |
| 107 CSSPropertyID unresolved_property, | 107 CSSPropertyID unresolved_property, |
| 108 const String&, | 108 const String&, |
| 109 bool important, | 109 bool important, |
| 110 const CSSParserContext*); | 110 const CSSParserContext*); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| 114 | 114 |
| 115 #endif // CSSParser_h | 115 #endif // CSSParser_h |
| OLD | NEW |