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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
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, 4 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index a4f487cfd8b5f175873d3ba5c54ef3a753dd06cc..6bd9e6c6428990929562323e0eef3bbd4756ed95 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -24393,14 +24393,6 @@ class Window extends EventTarget implements WindowBase, WindowTimers native "Win
@DocsEditable()
final int screenY;
- @DomName('Window.scrollX')
- @DocsEditable()
- final int scrollX;
-
- @DomName('Window.scrollY')
- @DocsEditable()
- final int scrollY;
-
@DomName('Window.scrollbars')
@DocsEditable()
final BarProp scrollbars;
@@ -24966,6 +24958,11 @@ class Window extends EventTarget implements WindowBase, WindowTimers native "Win
void moveTo(Point p) {
$dom_moveTo(p.x, p.y);
}
+
+ int get scrollX => JS('bool', '("scrollX" in #)', this) ? JS('int',
+ '#.scrollX', this) : document.documentElement.scrollLeft;
+ int get scrollY => JS('bool', '("scrollY" in #)', this) ? JS('int',
+ '#.scrollY', this) : document.documentElement.scrollTop;
}
/**
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698