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

Unified Diff: Source/build/scripts/make_css_property_names.py

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/make_css_property_names.py
diff --git a/Source/build/scripts/make_css_property_names.py b/Source/build/scripts/make_css_property_names.py
index e5237c94c67b672baa6718b0993db74389924aa9..4a591d3c7a371d8485fe9a4c411f33dab183123c 100755
--- a/Source/build/scripts/make_css_property_names.py
+++ b/Source/build/scripts/make_css_property_names.py
@@ -55,6 +55,10 @@ inline CSSPropertyID resolveCSSPropertyID(CSSPropertyID id)
inline bool isPropertyAlias(CSSPropertyID id) { return id & 512; }
+CSSPropertyID unresolvedCSSPropertyID(const WTF::String&);
+
+CSSPropertyID cssPropertyID(const WTF::String&);
+
} // namespace blink
namespace WTF {
@@ -161,6 +165,11 @@ String getJSPropertyName(CSSPropertyID id)
return String(result);
}
+CSSPropertyID cssPropertyID(const String& string)
+{
+ return resolveCSSPropertyID(unresolvedCSSPropertyID(string));
+}
+
} // namespace blink
"""
« no previous file with comments | « no previous file | Source/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698