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

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
« no previous file with comments | « 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..06f6c4b576bf02a15e84cde130b26aab9190b9ee 100644
--- a/tools/dom/templates/html/impl/impl_Window.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Window.darttemplate
@@ -281,6 +281,11 @@ $!MEMBERS
void moveTo(Point p) {
$dom_moveTo(p.x, p.y);
}
+
+ int get scrollX() => Device.isIE ? document.documentElement.scrollLeft :
blois 2013/07/25 21:30:03 Can this use ('scrollX' in window) ? rather than i
+ $dom_scrollX;
+ int get scrollY() => Device.isIE ? document.documentElement.scrollTop :
+ $dom_scrollY;
}
/**
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698