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

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

Issue 304303010: Clamp output to int (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dart2js changes Created 6 years, 7 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 f3f1b8dea834495f266d111f4ea31e06798b221b..8460f4fe6c502a2ce48862d9ab0202f0b69fc8d5 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -10268,51 +10268,59 @@ abstract class Element extends Node implements GlobalEventHandlers, ParentNode,
@DomName('Element.offsetHeight')
@DocsEditable()
- final num offsetHeight;
+ num get offsetHeight => JS('num', '#.offsetHeight', this).round();
@DomName('Element.offsetLeft')
@DocsEditable()
- final num offsetLeft;
+ num get offsetLeft => JS('num', '#.offsetLeft', this).round();
@DomName('Element.offsetTop')
@DocsEditable()
- final num offsetTop;
+ num get offsetTop => JS('num', '#.offsetTop', this).round();
@DomName('Element.offsetWidth')
@DocsEditable()
- final num offsetWidth;
+ num get offsetWidth => JS('num', '#.offsetWidth', this).round();
@DomName('Element.clientHeight')
@DocsEditable()
- final num clientHeight;
+ num get clientHeight => JS('num', '#.clientHeight', this).round();
@DomName('Element.clientLeft')
@DocsEditable()
- final num clientLeft;
+ num get clientLeft => JS('num', '#.clientLeft', this).round();
@DomName('Element.clientTop')
@DocsEditable()
- final num clientTop;
+ num get clientTop => JS('num', '#.clientTop', this).round();
@DomName('Element.clientWidth')
@DocsEditable()
- final num clientWidth;
+ num get clientWidth => JS('num', '#.clientWidth', this).round();
@DomName('Element.scrollHeight')
@DocsEditable()
- final num scrollHeight;
+ num get scrollHeight => JS('num', '#.scrollHeight', this).round();
@DomName('Element.scrollLeft')
@DocsEditable()
- num scrollLeft;
+ num get scrollLeft => JS('num', '#.scrollLeft', this).round();
+
+ @DomName('Element.scrollLeft')
+ @DocsEditable()
+ void set scrollLeft(num value) => JS("void", "#.scrollLeft = #", this, value.round());
+
+ @DomName('Element.scrollTop')
+ @DocsEditable()
+ num get scrollTop => JS('num', '#.scrollTop', this).round();
@DomName('Element.scrollTop')
@DocsEditable()
- num scrollTop;
+ void set scrollTop(num value) => JS("void", "#.scrollTop = #", this, value.round());
@DomName('Element.scrollWidth')
@DocsEditable()
- final num scrollWidth;
+ num get scrollWidth => JS('num', '#.scrollWidth', this).round();
// To suppress missing implicit constructor warnings.
« 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