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

Side by Side Diff: tools/dom/src/dart2js_CustomElementSupport.dart

Issue 149313004: move workaround from CE polyfill to custom elements createdCallback (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.dom.html; 5 part of dart.dom.html;
6 6
7 _callConstructor(constructor, interceptor) { 7 _callConstructor(constructor, interceptor) {
8 return (receiver) { 8 return (receiver) {
9 setNativeSubclassDispatchRecord(receiver, interceptor); 9 setNativeSubclassDispatchRecord(receiver, interceptor);
10 10
11 // Mirrors uses the constructor property to cache lookups, so we need it to
12 // be set correctly, including on IE where it is not automatically picked
13 // up from the __proto__.
14 JS('', '#.constructor = #.__proto__.constructor', receiver, receiver);
11 return JS('', '#(#)', constructor, receiver); 15 return JS('', '#(#)', constructor, receiver);
12 }; 16 };
13 } 17 }
14 18
15 _callEnteredView(receiver) { 19 _callEnteredView(receiver) {
16 return receiver.enteredView(); 20 return receiver.enteredView();
17 } 21 }
18 22
19 _callLeftView(receiver) { 23 _callLeftView(receiver) {
20 return receiver.leftView(); 24 return receiver.leftView();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 JS('=Object', '#.extends = #', options, extendsTagName); 121 JS('=Object', '#.extends = #', options, extendsTagName);
118 } 122 }
119 123
120 JS('void', '#.registerElement(#, #)', document, tag, options); 124 JS('void', '#.registerElement(#, #)', document, tag, options);
121 } 125 }
122 126
123 //// Called by Element.created to do validation & initialization. 127 //// Called by Element.created to do validation & initialization.
124 void _initializeCustomElement(Element e) { 128 void _initializeCustomElement(Element e) {
125 // TODO(blois): Add validation that this is only in response to an upgrade. 129 // TODO(blois): Add validation that this is only in response to an upgrade.
126 } 130 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698