| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index cb0a75fa930f23dfdbed39bb716261970ab31982..d81effef51de1829136656b02ac5f77993e81d05 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -32748,30 +32748,6 @@ _makeCallbackMethod3(callback) {
|
| convertDartClosureToJS(callback, 4));
|
| }
|
|
|
| -const _typeNameToTag = const {
|
| - 'HTMLAnchorElement': 'a',
|
| - 'HTMLAudioElement': 'audio',
|
| - 'HTMLButtonElement': 'button',
|
| - 'HTMLCanvasElement': 'canvas',
|
| - 'HTMLDivElement': 'div',
|
| - 'HTMLImageElement': 'img',
|
| - 'HTMLInputElement': 'input',
|
| - 'HTMLLIElement': 'li',
|
| - 'HTMLLabelElement': 'label',
|
| - 'HTMLMenuElement': 'menu',
|
| - 'HTMLMeterElement': 'meter',
|
| - 'HTMLOListElement': 'ol',
|
| - 'HTMLOptionElement': 'option',
|
| - 'HTMLOutputElement': 'output',
|
| - 'HTMLParagraphElement': 'p',
|
| - 'HTMLPreElement': 'pre',
|
| - 'HTMLProgressElement': 'progress',
|
| - 'HTMLSelectElement': 'select',
|
| - 'HTMLSpanElement': 'span',
|
| - 'HTMLUListElement': 'ul',
|
| - 'HTMLVideoElement': 'video',
|
| -};
|
| -
|
| void _registerCustomElement(context, document, String tag, Type type,
|
| String extendsTagName) {
|
| // Function follows the same pattern as the following JavaScript code for
|
| @@ -32840,8 +32816,6 @@ void _registerCustomElement(context, document, String tag, Type type,
|
| if (baseClassName != 'HTMLElement') {
|
| if (extendsTagName != null) {
|
| JS('=Object', '#.extends = #', options, extendsTagName);
|
| - } else if (_typeNameToTag.containsKey(baseClassName)) {
|
| - JS('=Object', '#.extends = #', options, _typeNameToTag[baseClassName]);
|
| }
|
| }
|
|
|
|
|