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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, | 73 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, |
74 Element*); | 74 Element*); |
75 | 75 |
76 static std::unique_ptr<Vector<double>> parseKeyframeKeyList(const String&); | 76 static std::unique_ptr<Vector<double>> parseKeyframeKeyList(const String&); |
77 static StyleRuleKeyframe* parseKeyframeRule(const CSSParserContext&, | 77 static StyleRuleKeyframe* parseKeyframeRule(const CSSParserContext&, |
78 const String&); | 78 const String&); |
79 | 79 |
80 static bool parseSupportsCondition(const String&); | 80 static bool parseSupportsCondition(const String&); |
81 | 81 |
82 // The color will only be changed when string contains a valid CSS color, so c
allers | 82 // The color will only be changed when string contains a valid CSS color, so |
83 // can set it to a default color and ignore the boolean result. | 83 // callers can set it to a default color and ignore the boolean result. |
84 static bool parseColor(Color&, const String&, bool strict = false); | 84 static bool parseColor(Color&, const String&, bool strict = false); |
85 static bool parseSystemColor(Color&, const String&); | 85 static bool parseSystemColor(Color&, const String&); |
86 | 86 |
87 static void parseSheetForInspector(const CSSParserContext&, | 87 static void parseSheetForInspector(const CSSParserContext&, |
88 StyleSheetContents*, | 88 StyleSheetContents*, |
89 const String&, | 89 const String&, |
90 CSSParserObserver&); | 90 CSSParserObserver&); |
91 static void parseDeclarationListForInspector(const CSSParserContext&, | 91 static void parseDeclarationListForInspector(const CSSParserContext&, |
92 const String&, | 92 const String&, |
93 CSSParserObserver&); | 93 CSSParserObserver&); |
94 | 94 |
95 private: | 95 private: |
96 static bool parseValue(MutableStylePropertySet*, | 96 static bool parseValue(MutableStylePropertySet*, |
97 CSSPropertyID unresolvedProperty, | 97 CSSPropertyID unresolvedProperty, |
98 const String&, | 98 const String&, |
99 bool important, | 99 bool important, |
100 const CSSParserContext&); | 100 const CSSParserContext&); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace blink | 103 } // namespace blink |
104 | 104 |
105 #endif // CSSParser_h | 105 #endif // CSSParser_h |
OLD | NEW |