OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
7 class _ChildrenElementList extends ListBase<Element> | 7 class _ChildrenElementList extends ListBase<Element> |
8 implements NodeListWrapper { | 8 implements NodeListWrapper { |
9 // Raw Element. | 9 // Raw Element. |
10 final Element _element; | 10 final Element _element; |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 @DomName('Element.scrollHeight') | 1361 @DomName('Element.scrollHeight') |
1362 @DocsEditable() | 1362 @DocsEditable() |
1363 int get scrollHeight => JS('num', '#.scrollHeight', this).round(); | 1363 int get scrollHeight => JS('num', '#.scrollHeight', this).round(); |
1364 | 1364 |
1365 @DomName('Element.scrollLeft') | 1365 @DomName('Element.scrollLeft') |
1366 @DocsEditable() | 1366 @DocsEditable() |
1367 int get scrollLeft => JS('num', '#.scrollLeft', this).round(); | 1367 int get scrollLeft => JS('num', '#.scrollLeft', this).round(); |
1368 | 1368 |
1369 @DomName('Element.scrollLeft') | 1369 @DomName('Element.scrollLeft') |
1370 @DocsEditable() | 1370 @DocsEditable() |
1371 void set scrollLeft(int value) => JS("void", "#.scrollLeft = #", this, value.r
ound()); | 1371 void set scrollLeft(int value) { |
| 1372 JS("void", "#.scrollLeft = #", this, value.round()); |
| 1373 } |
1372 | 1374 |
1373 @DomName('Element.scrollTop') | 1375 @DomName('Element.scrollTop') |
1374 @DocsEditable() | 1376 @DocsEditable() |
1375 int get scrollTop => JS('num', '#.scrollTop', this).round(); | 1377 int get scrollTop => JS('num', '#.scrollTop', this).round(); |
1376 | 1378 |
1377 @DomName('Element.scrollTop') | 1379 @DomName('Element.scrollTop') |
1378 @DocsEditable() | 1380 @DocsEditable() |
1379 void set scrollTop(int value) => JS("void", "#.scrollTop = #", this, value.rou
nd()); | 1381 void set scrollTop(int value) { |
| 1382 JS("void", "#.scrollTop = #", this, value.round()); |
| 1383 } |
1380 | 1384 |
1381 @DomName('Element.scrollWidth') | 1385 @DomName('Element.scrollWidth') |
1382 @DocsEditable() | 1386 @DocsEditable() |
1383 int get scrollWidth => JS('num', '#.scrollWidth', this).round(); | 1387 int get scrollWidth => JS('num', '#.scrollWidth', this).round(); |
1384 | 1388 |
1385 $else | 1389 $else |
1386 @DomName('Element.offsetHeight') | 1390 @DomName('Element.offsetHeight') |
1387 @DocsEditable() | 1391 @DocsEditable() |
1388 int get offsetHeight => _blink.BlinkElement.$offsetHeight_Getter(this).round()
; | 1392 int get offsetHeight => _blink.BlinkElement.$offsetHeight_Getter(this).round()
; |
1389 | 1393 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 const ScrollAlignment._internal(this._value); | 1482 const ScrollAlignment._internal(this._value); |
1479 toString() => 'ScrollAlignment.$_value'; | 1483 toString() => 'ScrollAlignment.$_value'; |
1480 | 1484 |
1481 /// Attempt to align the element to the top of the scrollable area. | 1485 /// Attempt to align the element to the top of the scrollable area. |
1482 static const TOP = const ScrollAlignment._internal('TOP'); | 1486 static const TOP = const ScrollAlignment._internal('TOP'); |
1483 /// Attempt to center the element in the scrollable area. | 1487 /// Attempt to center the element in the scrollable area. |
1484 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1488 static const CENTER = const ScrollAlignment._internal('CENTER'); |
1485 /// Attempt to align the element to the bottom of the scrollable area. | 1489 /// Attempt to align the element to the bottom of the scrollable area. |
1486 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1490 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1487 } | 1491 } |
OLD | NEW |