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/css/parser/BisonCSSParser.h" | 8 #include "core/css/parser/BisonCSSParser.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 15 matching lines...) Expand all Loading... |
26 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, CSSParserMode, StyleSheetContents*); | 26 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, CSSParserMode, StyleSheetContents*); |
27 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, const Document&); | 27 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, const Document&); |
28 | 28 |
29 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec
laration(const String&, Element*); | 29 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec
laration(const String&, Element*); |
30 | 30 |
31 static PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); | 31 static PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); |
32 static PassRefPtrWillBeRawPtr<StyleKeyframe> parseKeyframeRule(const CSSPars
erContext&, StyleSheetContents*, const String&); | 32 static PassRefPtrWillBeRawPtr<StyleKeyframe> parseKeyframeRule(const CSSPars
erContext&, StyleSheetContents*, const String&); |
33 | 33 |
34 static bool parseSupportsCondition(const String&); | 34 static bool parseSupportsCondition(const String&); |
35 | 35 |
36 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); | 36 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS
tring&); |
37 static PassRefPtr<CSSValue> parseAnimationTimingFunctionValue(const String&)
; | 37 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co
nst String&); |
38 | 38 |
39 static bool parseColor(RGBA32& color, const String&, bool strict = false); | 39 static bool parseColor(RGBA32& color, const String&, bool strict = false); |
40 static bool parseSystemColor(RGBA32& color, const String&); | 40 static bool parseSystemColor(RGBA32& color, const String&); |
41 static StyleColor colorFromRGBColorString(const String&); | 41 static StyleColor colorFromRGBColorString(const String&); |
42 | 42 |
43 private: | 43 private: |
44 BisonCSSParser m_bisonParser; | 44 BisonCSSParser m_bisonParser; |
45 }; | 45 }; |
46 | 46 |
47 CSSPropertyID cssPropertyID(const String&); | 47 CSSPropertyID cssPropertyID(const String&); |
48 | 48 |
49 } // namespace blink | 49 } // namespace blink |
50 | 50 |
51 #endif // CSSParser_h | 51 #endif // CSSParser_h |
52 | |
OLD | NEW |