| 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 "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/css/CSSValue.h" | 10 #include "core/css/CSSValue.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class CORE_EXPORT CSSParser { | 29 class CORE_EXPORT CSSParser { |
| 30 STATIC_ONLY(CSSParser); | 30 STATIC_ONLY(CSSParser); |
| 31 | 31 |
| 32 public: | 32 public: |
| 33 // As well as regular rules, allows @import and @namespace but not @charset | 33 // As well as regular rules, allows @import and @namespace but not @charset |
| 34 static StyleRuleBase* parseRule(const CSSParserContext&, | 34 static StyleRuleBase* parseRule(const CSSParserContext&, |
| 35 StyleSheetContents*, | 35 StyleSheetContents*, |
| 36 const String&); | 36 const String&); |
| 37 static void parseSheet(const CSSParserContext&, | 37 static void parseSheet(const CSSParserContext&, |
| 38 StyleSheetContents*, | 38 StyleSheetContents*, |
| 39 const String&); | 39 const String&, |
| 40 bool deferPropertyParsing = false); |
| 40 static CSSSelectorList parseSelector(const CSSParserContext&, | 41 static CSSSelectorList parseSelector(const CSSParserContext&, |
| 41 StyleSheetContents*, | 42 StyleSheetContents*, |
| 42 const String&); | 43 const String&); |
| 43 static CSSSelectorList parsePageSelector(const CSSParserContext&, | 44 static CSSSelectorList parsePageSelector(const CSSParserContext&, |
| 44 StyleSheetContents*, | 45 StyleSheetContents*, |
| 45 const String&); | 46 const String&); |
| 46 static bool parseDeclarationList(const CSSParserContext&, | 47 static bool parseDeclarationList(const CSSParserContext&, |
| 47 MutableStylePropertySet*, | 48 MutableStylePropertySet*, |
| 48 const String&); | 49 const String&); |
| 49 // Returns whether anything was changed. | 50 // Returns whether anything was changed. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 static bool parseValue(MutableStylePropertySet*, | 98 static bool parseValue(MutableStylePropertySet*, |
| 98 CSSPropertyID unresolvedProperty, | 99 CSSPropertyID unresolvedProperty, |
| 99 const String&, | 100 const String&, |
| 100 bool important, | 101 bool important, |
| 101 const CSSParserContext&); | 102 const CSSParserContext&); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace blink | 105 } // namespace blink |
| 105 | 106 |
| 106 #endif // CSSParser_h | 107 #endif // CSSParser_h |
| OLD | NEW |