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

Unified Diff: tools/dom/scripts/dartdomgenerator.py

Issue 442523003: Add property to CssStyleDeclaration to detect if a CSS value is available. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | « tools/dom/scripts/css_code_generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartdomgenerator.py
diff --git a/tools/dom/scripts/dartdomgenerator.py b/tools/dom/scripts/dartdomgenerator.py
index d9e1837695ceac8cd4e742c83f8b940d00b439e0..adc7814842edbecf97e287654f752765d7e89c4f 100755
--- a/tools/dom/scripts/dartdomgenerator.py
+++ b/tools/dom/scripts/dartdomgenerator.py
@@ -5,6 +5,7 @@
"""This is the entry point to create Dart APIs from the IDL database."""
+import css_code_generator
import dartgenerator
import database
import fremontcutbuilder
@@ -163,6 +164,12 @@ def GenerateSingleFile(library_path, output_dir, generated_output_dir=None):
copy_dart_script, output_dir, library_filename])
subprocess.call([command], shell=True)
+def UpdateCssProperties():
+ """Regenerate the CssStyleDeclaration template file with the current CSS
+ properties."""
+ _logger.info('Updating Css Properties.')
+ css_code_generator.GenerateCssTemplateFile()
+
def main():
parser = optparse.OptionParser()
parser.add_option('--parallel', dest='parallel',
@@ -210,6 +217,7 @@ def main():
if 'htmldartium' in systems:
dartium_output_dir = os.path.join(output_dir, 'dartium')
+ UpdateCssProperties()
if options.rebuild:
# Parse the IDL and create the database.
database = fremontcutbuilder.main(options.parallel)
« no previous file with comments | « tools/dom/scripts/css_code_generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698