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

Unified Diff: tools/dom/templates/html/impl/impl_Window.darttemplate

Issue 20385002: Added shim for scrollX and scrollY for IE 9. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« sdk/lib/html/dartium/html_dartium.dart ('K') | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Window.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Window.darttemplate b/tools/dom/templates/html/impl/impl_Window.darttemplate
index cf2dd3a5d4ba1978336ce7694f873372059e60c5..7af28fa4af6053c648c465e552bf93f94f51e632 100644
--- a/tools/dom/templates/html/impl/impl_Window.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Window.darttemplate
@@ -281,6 +281,13 @@ $!MEMBERS
void moveTo(Point p) {
$dom_moveTo(p.x, p.y);
}
+
+$if DART2JS
+ int get scrollX => JS('int',
+ '#.scrollX || document.documentElement.scrollLeft', this);
blois 2013/07/26 00:36:23 should use: => JS('bool', '("scrollX" in #)', this
+ int get scrollY => JS('int',
+ '#.scrollY || document.documentElement.scrollTop', this);
+$endif
}
/**
« sdk/lib/html/dartium/html_dartium.dart ('K') | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698