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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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"
11 #include "core/css/parser/CSSParserMode.h" 11 #include "core/css/parser/CSSParserMode.h"
12 #include "platform/graphics/Color.h" 12 #include "platform/graphics/Color.h"
13 #include <memory>
14 13
15 namespace blink { 14 namespace blink {
16 15
17 class CSSParserObserver; 16 class CSSParserObserver;
18 class CSSParserTokenRange; 17 class CSSParserTokenRange;
19 class CSSSelectorList; 18 class CSSSelectorList;
20 class Element; 19 class Element;
21 class ImmutableStylePropertySet; 20 class ImmutableStylePropertySet;
22 class MutableStylePropertySet; 21 class MutableStylePropertySet;
23 class StyleColor; 22 class StyleColor;
(...skipping 17 matching lines...) Expand all
41 static bool parseValueForCustomProperty(MutableStylePropertySet*, const Atom icString& propertyName, const String& value, bool important, StyleSheetContents* ); 40 static bool parseValueForCustomProperty(MutableStylePropertySet*, const Atom icString& propertyName, const String& value, bool important, StyleSheetContents* );
42 static ImmutableStylePropertySet* parseCustomPropertySet(CSSParserTokenRange ); 41 static ImmutableStylePropertySet* parseCustomPropertySet(CSSParserTokenRange );
43 42
44 // This is for non-shorthands only 43 // This is for non-shorthands only
45 static CSSValue* parseSingleValue(CSSPropertyID, const String&, const CSSPar serContext& = strictCSSParserContext()); 44 static CSSValue* parseSingleValue(CSSPropertyID, const String&, const CSSPar serContext& = strictCSSParserContext());
46 45
47 static CSSValue* parseFontFaceDescriptor(CSSPropertyID, const String&, const CSSParserContext&); 46 static CSSValue* parseFontFaceDescriptor(CSSPropertyID, const String&, const CSSParserContext&);
48 47
49 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, Element*); 48 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, Element*);
50 49
51 static std::unique_ptr<Vector<double>> parseKeyframeKeyList(const String&); 50 static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&);
52 static StyleRuleKeyframe* parseKeyframeRule(const CSSParserContext&, const S tring&); 51 static StyleRuleKeyframe* parseKeyframeRule(const CSSParserContext&, const S tring&);
53 52
54 static bool parseSupportsCondition(const String&); 53 static bool parseSupportsCondition(const String&);
55 54
56 // The color will only be changed when string contains a valid CSS color, so callers 55 // The color will only be changed when string contains a valid CSS color, so callers
57 // can set it to a default color and ignore the boolean result. 56 // can set it to a default color and ignore the boolean result.
58 static bool parseColor(Color&, const String&, bool strict = false); 57 static bool parseColor(Color&, const String&, bool strict = false);
59 static bool parseSystemColor(Color&, const String&); 58 static bool parseSystemColor(Color&, const String&);
60 59
61 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&); 60 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&);
62 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&); 61 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
63 62
64 private: 63 private:
65 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&); 64 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&);
66 }; 65 };
67 66
68 } // namespace blink 67 } // namespace blink
69 68
70 #endif // CSSParser_h 69 #endif // CSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698