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

Unified Diff: core/scripts/make_css_property_names.py

Issue 19605006: Roll IDL to multivm@1316 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 5 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 | « core/scripts/action_useragentstylesheets.py ('k') | core/scripts/make_css_value_keywords.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/scripts/make_css_property_names.py
diff --git a/core/scripts/make_css_property_names.py b/core/scripts/make_css_property_names.py
index dc2cc175b81aa275c782763588bfa509ae0881bc..58f85f2ad8e1526291e74acaaad61939795d5b2b 100755
--- a/core/scripts/make_css_property_names.py
+++ b/core/scripts/make_css_property_names.py
@@ -183,7 +183,10 @@ class CSSPropertiesWriter(in_generator.Writer):
# Aliases do not get an enum_value.
self._properties = filter(lambda property: not property['alias_for'] and not property['condition'] or property['condition'] in self._enabled_conditions, all_properties)
- self._first_property_id = 1001 # Historical, unclear why.
+ if len(self._properties) > 1024:
+ print "ERROR : There is more than 1024 CSS Properties, you need to update CSSProperty.h/StylePropertyMetadata m_propertyID accordingly."
+ exit(1)
+ self._first_property_id = 2 # We start after CSSPropertyInvalid and CSSPropertyVariable.
property_id = self._first_property_id
for offset, property in enumerate(self._properties):
property['enum_name'] = self._enum_name_from_property_name(property['name'])
« no previous file with comments | « core/scripts/action_useragentstylesheets.py ('k') | core/scripts/make_css_value_keywords.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698