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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 10 matching lines...) Expand all
21 class StyleColor; 21 class StyleColor;
22 class StyleRuleBase; 22 class StyleRuleBase;
23 class StyleRuleKeyframe; 23 class StyleRuleKeyframe;
24 class StyleSheetContents; 24 class StyleSheetContents;
25 25
26 // This class serves as the public API for the css/parser subsystem 26 // This class serves as the public API for the css/parser subsystem
27 class CORE_EXPORT CSSParser { 27 class CORE_EXPORT CSSParser {
28 STATIC_ONLY(CSSParser); 28 STATIC_ONLY(CSSParser);
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 RawPtr<StyleRuleBase> parseRule(const CSSParserContext&, StyleSheetCo ntents*, const String&);
32 static void parseSheet(const CSSParserContext&, StyleSheetContents*, const S tring&); 32 static void parseSheet(const CSSParserContext&, StyleSheetContents*, const S tring&);
33 static CSSSelectorList parseSelector(const CSSParserContext&, StyleSheetCont ents*, const String&); 33 static CSSSelectorList parseSelector(const CSSParserContext&, StyleSheetCont ents*, const String&);
34 static CSSSelectorList parsePageSelector(const CSSParserContext&, StyleSheet Contents*, const String&); 34 static CSSSelectorList parsePageSelector(const CSSParserContext&, StyleSheet Contents*, const String&);
35 static bool parseDeclarationList(const CSSParserContext&, MutableStyleProper tySet*, const String&); 35 static bool parseDeclarationList(const CSSParserContext&, MutableStyleProper tySet*, const String&);
36 // Returns whether anything was changed. 36 // Returns whether anything was changed.
37 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, StyleSheetContents*); 37 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, StyleSheetContents*);
38 38
39 static bool parseValueForCustomProperty(MutableStylePropertySet*, const Atom icString& propertyName, const String& value, bool important, StyleSheetContents* ); 39 static bool parseValueForCustomProperty(MutableStylePropertySet*, const Atom icString& propertyName, const String& value, bool important, StyleSheetContents* );
40 40
41 // This is for non-shorthands only 41 // This is for non-shorthands only
42 static PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID, cons t String&, const CSSParserContext& = strictCSSParserContext()); 42 static RawPtr<CSSValue> parseSingleValue(CSSPropertyID, const String&, const CSSParserContext& = strictCSSParserContext());
43 43
44 static PassRefPtrWillBeRawPtr<CSSValue> parseFontFaceDescriptor(CSSPropertyI D, const String&, const CSSParserContext&); 44 static RawPtr<CSSValue> parseFontFaceDescriptor(CSSPropertyID, const String& , const CSSParserContext&);
45 45
46 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*); 46 static RawPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(const S tring&, Element*);
47 47
48 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&); 48 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&);
49 static PassRefPtrWillBeRawPtr<StyleRuleKeyframe> parseKeyframeRule(const CSS ParserContext&, const String&); 49 static RawPtr<StyleRuleKeyframe> parseKeyframeRule(const CSSParserContext&, const String&);
50 50
51 static bool parseSupportsCondition(const String&); 51 static bool parseSupportsCondition(const String&);
52 52
53 // The color will only be changed when string contains a valid CSS color, so callers 53 // The color will only be changed when string contains a valid CSS color, so callers
54 // can set it to a default color and ignore the boolean result. 54 // can set it to a default color and ignore the boolean result.
55 static bool parseColor(Color&, const String&, bool strict = false); 55 static bool parseColor(Color&, const String&, bool strict = false);
56 static bool parseSystemColor(Color&, const String&); 56 static bool parseSystemColor(Color&, const String&);
57 57
58 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&); 58 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&);
59 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&); 59 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
60 60
61 private: 61 private:
62 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&); 62 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&);
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // CSSParser_h 67 #endif // CSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698