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

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

Issue 1184413005: Clean up some CSSPropertyID helpers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bring back CSSParserString overload Created 5 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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static bool parseSystemColor(RGBA32& color, const String&); 53 static bool parseSystemColor(RGBA32& color, const String&);
54 static StyleColor colorFromRGBColorString(const String&); 54 static StyleColor colorFromRGBColorString(const String&);
55 55
56 static void parseSheetForInspector(const CSSParserContext&, const String&, C SSParserObserver&); 56 static void parseSheetForInspector(const CSSParserContext&, const String&, C SSParserObserver&);
57 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&); 57 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
58 58
59 private: 59 private:
60 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&); 60 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&);
61 }; 61 };
62 62
63 // TODO(timloh): It's weird that these are declared here but defined in CSSPrope rtyParser.h
64 CSSPropertyID unresolvedCSSPropertyID(const String&);
65 CSSPropertyID cssPropertyID(const String&);
66
67 } // namespace blink 63 } // namespace blink
68 64
69 #endif // CSSParser_h 65 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698