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

Side by Side Diff: client/dom/generated/wrapping_dom.js

Issue 8277016: IE9 dom fixes: Add check for __proto__ before using it and add some name workarounds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « no previous file | client/dom/scripts/template_wrapping_dom.js » ('j') | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated Dart DOM implementation. 6 // Auto-generated Dart DOM implementation.
7 7
8 8
9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr or(_this) { 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr or(_this) {
10 try { 10 try {
(...skipping 26662 matching lines...) Expand 10 before | Expand all | Expand 10 after
26673 "XMLSerializer": native__XMLSerializerWrappingImplementation_create__XMLSerial izerWrappingImplementation, 26673 "XMLSerializer": native__XMLSerializerWrappingImplementation_create__XMLSerial izerWrappingImplementation,
26674 "XPathEvaluator": native__XPathEvaluatorWrappingImplementation_create__XPathEv aluatorWrappingImplementation, 26674 "XPathEvaluator": native__XPathEvaluatorWrappingImplementation_create__XPathEv aluatorWrappingImplementation,
26675 "XPathException": native__XPathExceptionWrappingImplementation_create__XPathEx ceptionWrappingImplementation, 26675 "XPathException": native__XPathExceptionWrappingImplementation_create__XPathEx ceptionWrappingImplementation,
26676 "XPathExpression": native__XPathExpressionWrappingImplementation_create__XPath ExpressionWrappingImplementation, 26676 "XPathExpression": native__XPathExpressionWrappingImplementation_create__XPath ExpressionWrappingImplementation,
26677 "XPathNSResolver": native__XPathNSResolverWrappingImplementation_create__XPath NSResolverWrappingImplementation, 26677 "XPathNSResolver": native__XPathNSResolverWrappingImplementation_create__XPath NSResolverWrappingImplementation,
26678 "XPathResult": native__XPathResultWrappingImplementation_create__XPathResultWr appingImplementation, 26678 "XPathResult": native__XPathResultWrappingImplementation_create__XPathResultWr appingImplementation,
26679 "XSLTProcessor": native__XSLTProcessorWrappingImplementation_create__XSLTProce ssorWrappingImplementation, 26679 "XSLTProcessor": native__XSLTProcessorWrappingImplementation_create__XSLTProce ssorWrappingImplementation,
26680 26680
26681 // Patches for non-WebKit browsers 26681 // Patches for non-WebKit browsers
26682 'Window': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImp lementation, 26682 'Window': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImp lementation,
26683 'global': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImp lementation 26683 'global': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImp lementation,
26684 'KeyEvent': native__KeyboardEventWrappingImplementation_create__KeyboardEventW rappingImplementation, // Opera
26685 'HTMLPhraseElement': native__HTMLElementWrappingImplementation_create__HTMLEle mentWrappingImplementation, // IE9
26686 'MSStyleCSSProperties': native__CSSStyleDeclarationWrappingImplementation_crea te__CSSStyleDeclarationWrappingImplementation // IE9
26684 }; 26687 };
26685 26688
26686 function __dom_get_class_chrome(ptr) { 26689 function __dom_get_class_chrome(ptr) {
26687 return __dom_type_map[ptr.constructor.name]; 26690 return __dom_type_map[ptr.constructor.name];
26688 } 26691 }
26689 26692
26690 function __dom_get_class_generic(ptr) { 26693 function __dom_get_class_generic(ptr) {
26691 var isolatetoken = __dom_isolate_token();
26692 var result = __dom_get_cached('dart_class', ptr.__proto__, isolatetoken);
26693 if (result) {
26694 return result;
26695 }
26696 var str = Object.prototype.toString.call(ptr); 26694 var str = Object.prototype.toString.call(ptr);
26697 var name = str.substring(8, str.length - 1); 26695 var name = str.substring(8, str.length - 1);
26698 var cls = __dom_type_map[name]; 26696 var cls = __dom_type_map[name];
26699 __dom_set_cached('dart_class', ptr.__proto__, isolatetoken, cls);
26700 return cls; 26697 return cls;
26701 } 26698 }
26702 26699
26700 if (Object.__proto__) {
26701 __dom_get_class_generic = function(ptr) {
26702 var isolatetoken = __dom_isolate_token();
26703 var result = __dom_get_cached('dart_class', ptr.__proto__, isolatetoken);
26704 if (result) {
26705 return result;
26706 }
26707 var str = Object.prototype.toString.call(ptr);
26708 var name = str.substring(8, str.length - 1);
26709 var cls = __dom_type_map[name];
26710 __dom_set_cached('dart_class', ptr.__proto__, isolatetoken, cls);
26711 return cls;
26712 }
26713 }
26714
26703 var __dom_get_class = __dom_get_class_generic; 26715 var __dom_get_class = __dom_get_class_generic;
26704 if (typeof window !== 'undefined' && // webworkers don't have a window 26716 if (typeof window !== 'undefined' && // webworkers don't have a window
26705 window.constructor.name == "DOMWindow") { 26717 window.constructor.name == "DOMWindow") {
26706 __dom_get_class = __dom_get_class_chrome; 26718 __dom_get_class = __dom_get_class_chrome;
26707 } 26719 }
26708 26720
26709 function __dom_get_cached(hashtablename, obj, isolatetoken) { 26721 function __dom_get_cached(hashtablename, obj, isolatetoken) {
26710 if (!obj.hasOwnProperty(hashtablename)) return (void 0); 26722 if (!obj.hasOwnProperty(hashtablename)) return (void 0);
26711 var hashtable = obj[hashtablename]; 26723 var hashtable = obj[hashtablename];
26712 var hash = isolatetoken.hashCode; 26724 var hash = isolatetoken.hashCode;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
26825 function native__NativeDomGlobalProperties_getWindow() { 26837 function native__NativeDomGlobalProperties_getWindow() {
26826 // TODO: Should the window be obtained from an isolate? 26838 // TODO: Should the window be obtained from an isolate?
26827 return __dom_wrap(window); 26839 return __dom_wrap(window);
26828 } 26840 }
26829 26841
26830 // Declared in src/GlobalProperties.dart 26842 // Declared in src/GlobalProperties.dart
26831 function native__NativeDomGlobalProperties_getDocument() { 26843 function native__NativeDomGlobalProperties_getDocument() {
26832 // TODO: Should the window be obtained from an isolate? 26844 // TODO: Should the window be obtained from an isolate?
26833 return __dom_wrap(window.document); 26845 return __dom_wrap(window.document);
26834 } 26846 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/scripts/template_wrapping_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698