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

Unified Diff: third_party/WebKit/Source/build/scripts/name_utilities.py

Issue 2620233002: Add 'priority' key to CSSProperties.in (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/build/scripts/name_utilities.py
diff --git a/third_party/WebKit/Source/build/scripts/name_utilities.py b/third_party/WebKit/Source/build/scripts/name_utilities.py
index 90b80ba8cc3f0b05d588a69e89144e8a7c79ca93..9c67c75c2c51190c9a90801af745c938d7619bcb 100644
--- a/third_party/WebKit/Source/build/scripts/name_utilities.py
+++ b/third_party/WebKit/Source/build/scripts/name_utilities.py
@@ -107,3 +107,9 @@ def enum_for_css_property(property_name):
def enum_for_css_property_alias(property_name):
return 'CSSPropertyAlias' + camel_case(property_name)
+
+
+def strip_webkit_prefix(property_name):
+ if property_name.startswith('-webkit-'):
+ return property_name[len('-webkit-'):]
+ return property_name

Powered by Google App Engine
This is Rietveld 408576698