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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&); | 45 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&); |
46 static PassRefPtrWillBeRawPtr<StyleRuleKeyframe> parseKeyframeRule(const CSS
ParserContext&, const String&); | 46 static PassRefPtrWillBeRawPtr<StyleRuleKeyframe> parseKeyframeRule(const CSS
ParserContext&, const String&); |
47 | 47 |
48 static bool parseSupportsCondition(const String&); | 48 static bool parseSupportsCondition(const String&); |
49 | 49 |
50 // The color will only be changed when string contains a valid CSS color, so
callers | 50 // The color will only be changed when string contains a valid CSS color, so
callers |
51 // can set it to a default color and ignore the boolean result. | 51 // can set it to a default color and ignore the boolean result. |
52 static bool parseColor(RGBA32& color, const String&, bool strict = false); | 52 static bool parseColor(RGBA32& color, const String&, bool strict = false); |
53 static bool parseSystemColor(RGBA32& color, const String&); | 53 static bool parseSystemColor(RGBA32& color, const String&); |
54 static StyleColor colorFromRGBColorString(const String&); | |
55 | 54 |
56 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten
ts*, const String&, CSSParserObserver&); | 55 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten
ts*, const String&, CSSParserObserver&); |
57 static void parseDeclarationListForInspector(const CSSParserContext&, const
String&, CSSParserObserver&); | 56 static void parseDeclarationListForInspector(const CSSParserContext&, const
String&, CSSParserObserver&); |
58 | 57 |
59 private: | 58 private: |
60 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro
perty, const String&, bool important, const CSSParserContext&); | 59 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro
perty, const String&, bool important, const CSSParserContext&); |
61 }; | 60 }; |
62 | 61 |
63 } // namespace blink | 62 } // namespace blink |
64 | 63 |
65 #endif // CSSParser_h | 64 #endif // CSSParser_h |
OLD | NEW |