Index: tools/dom/scripts/generator.py |
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py |
index 3bb58bcf5d15e4a40cfa62793536e99bde930795..ef81ebd8d872d06b7b127e9c5a673ec37e4eab37 100644 |
--- a/tools/dom/scripts/generator.py |
+++ b/tools/dom/scripts/generator.py |
@@ -11,7 +11,8 @@ import json |
import monitored |
import os |
import re |
-from htmlrenamer import html_interface_renames, typed_array_renames |
+from htmlrenamer import custom_html_constructors, html_interface_renames, \ |
+ typed_array_renames |
_pure_interfaces = monitored.Set('generator._pure_interfaces', [ |
# TODO(sra): DOMStringMap should be a class implementing Map<String,String>. |
@@ -313,7 +314,8 @@ def AnalyzeConstructor(interface): |
info.idl_args = idl_args |
info.declared_name = name |
info.name = name |
- info.constructor_name = None |
+ info.constructor_name = ('_' if interface.id in custom_html_constructors |
+ else None) |
info.js_name = name |
info.type_name = interface.id |
info.param_infos = _BuildArguments(idl_args, interface, constructor=True) |