Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: Source/core/css/parser/CSSParser.h

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
29 public: 29 public:
30 // As well as regular rules, allows @import and @namespace but not @charset 30 // As well as regular rules, allows @import and @namespace but not @charset
31 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const CSSParserContex t&, StyleSheetContents*, const String&); 31 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const CSSParserContex t&, StyleSheetContents*, const String&);
32 static void parseSheet(const CSSParserContext&, StyleSheetContents*, const S tring&); 32 static void parseSheet(const CSSParserContext&, StyleSheetContents*, const S tring&);
33 static void parseSelector(const CSSParserContext&, const String&, CSSSelecto rList&); 33 static void parseSelector(const CSSParserContext&, const String&, CSSSelecto rList&);
34 static bool parseDeclarationList(const CSSParserContext&, MutableStyleProper tySet*, const String&); 34 static bool parseDeclarationList(const CSSParserContext&, MutableStyleProper tySet*, const String&);
35 // Returns whether anything was changed. 35 // Returns whether anything was changed.
36 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, CSSParserMode, StyleSheetContents*); 36 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, CSSParserMode, StyleSheetContents*);
37 37
38 // This is for non-shorthands only 38 // This is for non-shorthands only
39 static PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID, cons t String&, const CSSParserContext& = strictCSSParserContext()); 39 static PassRefPtr<CSSValue> parseSingleValue(CSSPropertyID, const String&, c onst CSSParserContext& = strictCSSParserContext());
40 40
41 static PassRefPtrWillBeRawPtr<CSSValue> parseFontFaceDescriptor(CSSPropertyI D, const String&, const CSSParserContext&); 41 static PassRefPtr<CSSValue> parseFontFaceDescriptor(CSSPropertyID, const Str ing&, const CSSParserContext&);
42 42
43 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*); 43 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*);
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 54
55 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&); 55 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&);
56 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&); 56 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
57 57
58 private: 58 private:
59 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&);
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // CSSParser_h 64 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698