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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/dom/scripts/template_wrapping_dom.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/generated/wrapping_dom.js
diff --git a/client/dom/generated/wrapping_dom.js b/client/dom/generated/wrapping_dom.js
index d4829a76d354ff7841ad3db51f6edc54cbcec5b6..7ce1c0da5c12b9864708e3e76106b77ca47980d7 100644
--- a/client/dom/generated/wrapping_dom.js
+++ b/client/dom/generated/wrapping_dom.js
@@ -26680,7 +26680,10 @@ var __dom_type_map = {
// Patches for non-WebKit browsers
'Window': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImplementation,
- 'global': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImplementation
+ 'global': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImplementation,
+ 'KeyEvent': native__KeyboardEventWrappingImplementation_create__KeyboardEventWrappingImplementation, // Opera
+ 'HTMLPhraseElement': native__HTMLElementWrappingImplementation_create__HTMLElementWrappingImplementation, // IE9
+ 'MSStyleCSSProperties': native__CSSStyleDeclarationWrappingImplementation_create__CSSStyleDeclarationWrappingImplementation // IE9
};
function __dom_get_class_chrome(ptr) {
@@ -26688,18 +26691,27 @@ function __dom_get_class_chrome(ptr) {
}
function __dom_get_class_generic(ptr) {
- var isolatetoken = __dom_isolate_token();
- var result = __dom_get_cached('dart_class', ptr.__proto__, isolatetoken);
- if (result) {
- return result;
- }
var str = Object.prototype.toString.call(ptr);
var name = str.substring(8, str.length - 1);
var cls = __dom_type_map[name];
- __dom_set_cached('dart_class', ptr.__proto__, isolatetoken, cls);
return cls;
}
+if (Object.__proto__) {
+ __dom_get_class_generic = function(ptr) {
+ var isolatetoken = __dom_isolate_token();
+ var result = __dom_get_cached('dart_class', ptr.__proto__, isolatetoken);
+ if (result) {
+ return result;
+ }
+ var str = Object.prototype.toString.call(ptr);
+ var name = str.substring(8, str.length - 1);
+ var cls = __dom_type_map[name];
+ __dom_set_cached('dart_class', ptr.__proto__, isolatetoken, cls);
+ return cls;
+ }
+}
+
var __dom_get_class = __dom_get_class_generic;
if (typeof window !== 'undefined' && // webworkers don't have a window
window.constructor.name == "DOMWindow") {
« 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