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

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

Issue 11719003: Nuke custom factory providers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebaselining Created 7 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: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index 3d0d9130787fdc5b5d1122f7ca909e1a9cb77460..98589dbf608fec1894168bc0a5299eab44aed75a 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -497,6 +497,15 @@ class Dart2JSBackend(HtmlDartGenerator):
return js_support_checks.get(self._interface.doc_js_name)
def EmitStaticFactory(self, constructor_info):
+ WITH_CUSTOM_STATIC_FACTORY = [
+ 'AudioContext',
+ 'Blob',
+ 'MutationObserver',
+ ]
+
+ if self._interface.doc_js_name in WITH_CUSTOM_STATIC_FACTORY:
+ return
+
has_optional = any(param_info.is_optional
for param_info in constructor_info.param_infos)
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/templates/html/dart2js/factoryprovider_AudioContext.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698