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

Unified Diff: Source/devtools/scripts/concatenate_application_code.py

Issue 676993002: DevTools: Remove the "stylesheets" field from module descriptors at build time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/scripts/concatenate_application_code.py
diff --git a/Source/devtools/scripts/concatenate_application_code.py b/Source/devtools/scripts/concatenate_application_code.py
index efcdbc9899f64b30a83d7bad87c469f15fbfc374..60e5442eef620587d3a0522a722faecb8701b5b1 100755
--- a/Source/devtools/scripts/concatenate_application_code.py
+++ b/Source/devtools/scripts/concatenate_application_code.py
@@ -152,8 +152,12 @@ class ReleaseBuilder(AppBuilder):
module = copy.copy(module_descriptors[name])
# Clear scripts, as they are not used at runtime
# (only the fact of their presence is important).
- if module.get('scripts'):
+ stylesheets = module.get('stylesheets', None)
+ if module.get('scripts') or stylesheets:
module['scripts'] = []
+ # Stylesheets list is not used at runtime.
+ if stylesheets is not None:
+ del module['stylesheets']
result.append(module)
return json.dumps(result)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698