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

Unified Diff: client/dom/generated/wrapping_dom.js

Side-by-side diff isn't available for this file because of its large size.
Issue 8784013: Fix CanvasPixelArray's operator[] for the wrapping js dom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rerun Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: client/dom/generated/wrapping_dom.js
diff --git a/client/dom/generated/wrapping_dom.js b/client/dom/generated/wrapping_dom.js
index ced7a64cd4fccfe65c31dc33c08eb2f2f6c99333..e3b79ba534ebb890c1976cdb1719f55365abe029 100644
--- a/client/dom/generated/wrapping_dom.js
+++ b/client/dom/generated/wrapping_dom.js
@@ -1438,9 +1438,17 @@ function native__CanvasPixelArrayWrappingImplementation__get_length(_this) {
}
}
-function native__CanvasPixelArrayWrappingImplementation__item(_this, index) {
+function native__CanvasPixelArrayWrappingImplementation__index(_this, index) {
try {
- return __dom_wrap(_this.$dom.item(__dom_unwrap(index)));
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
+function native__CanvasPixelArrayWrappingImplementation__set_index(_this, index, value) {
+ try {
+ return _this.$dom[index] = __dom_unwrap(value);
} catch (e) {
throw __dom_wrap_exception(e);
}
@@ -8694,6 +8702,14 @@ function native__HTMLCollectionWrappingImplementation__get_length(_this) {
}
}
+function native__HTMLCollectionWrappingImplementation__index(_this, index) {
+ try {
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__HTMLCollectionWrappingImplementation__item(_this, index) {
try {
return __dom_wrap(_this.$dom.item(__dom_unwrap(index)));
@@ -16966,6 +16982,14 @@ function native__MediaListWrappingImplementation__set_mediaText(_this, value) {
}
}
+function native__MediaListWrappingImplementation__index(_this, index) {
+ try {
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__MediaListWrappingImplementation__appendMedium(_this, newMedium) {
try {
return __dom_wrap(_this.$dom.appendMedium(__dom_unwrap(newMedium)));
@@ -17494,6 +17518,14 @@ function native__NamedNodeMapWrappingImplementation__get_length(_this) {
}
}
+function native__NamedNodeMapWrappingImplementation__index(_this, index) {
+ try {
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__NamedNodeMapWrappingImplementation__getNamedItem(_this, name) {
try {
return __dom_wrap(_this.$dom.getNamedItem(__dom_unwrap(name)));
@@ -18102,6 +18134,14 @@ function native__NodeListWrappingImplementation__get_length(_this) {
}
}
+function native__NodeListWrappingImplementation__index(_this, index) {
+ try {
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__NodeListWrappingImplementation__item(_this, index) {
try {
return __dom_wrap(_this.$dom.item(__dom_unwrap(index)));
@@ -29358,6 +29398,14 @@ function native__StyleSheetListWrappingImplementation__get_length(_this) {
}
}
+function native__StyleSheetListWrappingImplementation__index(_this, index) {
+ try {
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__StyleSheetListWrappingImplementation__item(_this, index) {
try {
return __dom_wrap(_this.$dom.item(__dom_unwrap(index)));
@@ -29814,6 +29862,14 @@ function native__TouchListWrappingImplementation__get_length(_this) {
}
}
+function native__TouchListWrappingImplementation__index(_this, index) {
+ try {
+ return __dom_wrap(_this.$dom[index]);
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__TouchListWrappingImplementation__item(_this, index) {
try {
return __dom_wrap(_this.$dom.item(__dom_unwrap(index)));
« no previous file with comments | « client/dom/generated/src/wrapping/_TouchListWrappingImplementation.dart ('k') | client/dom/generated/wrapping_dom_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698