Chromium Code Reviews| 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..eda3460ed402dad5f02972dbcd6bc41f20ca15c2 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', |
|
blois
2013/07/26 15:38:01
Best to add parens around the statement, the JS ge
|
| + '#.scrollX', this) : document.documentElement.scrollLeft; |
| + int get scrollY => JS('bool', '"scrollY" in #', this) ? JS('int', |
| + '#.scrollY', this) : document.documentElement.scrollTop; |
| } |
| /** |