| Index: tools/dom/scripts/generator.py
|
| diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
|
| index 9499a087bdade2b3b3253d06dbc6d3c1b4972a6c..4ae39dfe7d2b9e820bd5bb8391c8636d1d2de27d 100644
|
| --- a/tools/dom/scripts/generator.py
|
| +++ b/tools/dom/scripts/generator.py
|
| @@ -77,12 +77,20 @@ interface_factories = monitored.Dict('generator.interface_factories', {
|
| #
|
| _dart2js_dom_custom_native_specs = monitored.Dict(
|
| 'generator._dart2js_dom_custom_native_specs', {
|
| - # Decorate the singleton Console object, if present (workers do not have a
|
| - # console).
|
| - 'Console': "=(typeof console == 'undefined' ? {} : console)",
|
|
|
| - # DOMWindow aliased with global scope.
|
| - 'Window': '@*DOMWindow',
|
| + # Nodes with different tags in different browsers can be listed as multiple
|
| + # tags here provided there is not conflict in usage (e.g. browser X has tag
|
| + # T and no other browser has tag T).
|
| +
|
| + 'DOMApplicationCache':
|
| + 'ApplicationCache,DOMApplicationCache,OfflineResourceList',
|
| +
|
| + 'MutationObserver': 'MutationObserver,WebKitMutationObserver',
|
| +
|
| + 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent',
|
| +
|
| + 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent',
|
| +
|
| }, dart2jsOnly=True)
|
|
|
| def IsRegisteredType(type_name):
|
| @@ -94,7 +102,7 @@ def MakeNativeSpec(javascript_binding_name):
|
| else:
|
| # Make the class 'hidden' so it is dynamically patched at runtime. This
|
| # is useful for browser compat.
|
| - return '*' + javascript_binding_name
|
| + return javascript_binding_name
|
|
|
|
|
| def MatchSourceFilter(thing):
|
|
|