| 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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 JS("void", "#.scrollTop = #", this, value.round()); | 1382 JS("void", "#.scrollTop = #", this, value.round()); |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 @DomName('Element.scrollWidth') | 1385 @DomName('Element.scrollWidth') |
| 1386 @DocsEditable() | 1386 @DocsEditable() |
| 1387 int get scrollWidth => JS('num', '#.scrollWidth', this).round(); | 1387 int get scrollWidth => JS('num', '#.scrollWidth', this).round(); |
| 1388 | 1388 |
| 1389 $else | 1389 $else |
| 1390 @DomName('Element.offsetHeight') | 1390 @DomName('Element.offsetHeight') |
| 1391 @DocsEditable() | 1391 @DocsEditable() |
| 1392 int get offsetHeight => _blink.BlinkElement.$offsetHeight_Getter(this).round()
; | 1392 int get offsetHeight => _blink.BlinkElement.offsetHeight_Getter(this).round(); |
| 1393 | 1393 |
| 1394 @DomName('Element.offsetLeft') | 1394 @DomName('Element.offsetLeft') |
| 1395 @DocsEditable() | 1395 @DocsEditable() |
| 1396 int get offsetLeft => _blink.BlinkElement.$offsetLeft_Getter(this).round(); | 1396 int get offsetLeft => _blink.BlinkElement.offsetLeft_Getter(this).round(); |
| 1397 | 1397 |
| 1398 @DomName('Element.offsetTop') | 1398 @DomName('Element.offsetTop') |
| 1399 @DocsEditable() | 1399 @DocsEditable() |
| 1400 int get offsetTop => _blink.BlinkElement.$offsetTop_Getter(this).round(); | 1400 int get offsetTop => _blink.BlinkElement.offsetTop_Getter(this).round(); |
| 1401 | 1401 |
| 1402 @DomName('Element.offsetWidth') | 1402 @DomName('Element.offsetWidth') |
| 1403 @DocsEditable() | 1403 @DocsEditable() |
| 1404 int get offsetWidth => _blink.BlinkElement.$offsetWidth_Getter(this).round(); | 1404 int get offsetWidth => _blink.BlinkElement.offsetWidth_Getter(this).round(); |
| 1405 | 1405 |
| 1406 @DomName('Element.clientHeight') | 1406 @DomName('Element.clientHeight') |
| 1407 @DocsEditable() | 1407 @DocsEditable() |
| 1408 int get clientHeight => _blink.BlinkElement.$clientHeight_Getter(this).round()
; | 1408 int get clientHeight => _blink.BlinkElement.clientHeight_Getter(this).round(); |
| 1409 | 1409 |
| 1410 @DomName('Element.clientLeft') | 1410 @DomName('Element.clientLeft') |
| 1411 @DocsEditable() | 1411 @DocsEditable() |
| 1412 int get clientLeft => _blink.BlinkElement.$clientLeft_Getter(this).round(); | 1412 int get clientLeft => _blink.BlinkElement.clientLeft_Getter(this).round(); |
| 1413 | 1413 |
| 1414 @DomName('Element.clientTop') | 1414 @DomName('Element.clientTop') |
| 1415 @DocsEditable() | 1415 @DocsEditable() |
| 1416 int get clientTop => _blink.BlinkElement.$clientTop_Getter(this).round(); | 1416 int get clientTop => _blink.BlinkElement.clientTop_Getter(this).round(); |
| 1417 | 1417 |
| 1418 @DomName('Element.clientWidth') | 1418 @DomName('Element.clientWidth') |
| 1419 @DocsEditable() | 1419 @DocsEditable() |
| 1420 int get clientWidth => _blink.BlinkElement.$clientWidth_Getter(this).round(); | 1420 int get clientWidth => _blink.BlinkElement.clientWidth_Getter(this).round(); |
| 1421 | 1421 |
| 1422 @DomName('Element.scrollHeight') | 1422 @DomName('Element.scrollHeight') |
| 1423 @DocsEditable() | 1423 @DocsEditable() |
| 1424 int get scrollHeight => _blink.BlinkElement.$scrollHeight_Getter(this).round()
; | 1424 int get scrollHeight => _blink.BlinkElement.scrollHeight_Getter(this).round(); |
| 1425 | 1425 |
| 1426 @DomName('Element.scrollLeft') | 1426 @DomName('Element.scrollLeft') |
| 1427 @DocsEditable() | 1427 @DocsEditable() |
| 1428 int get scrollLeft => _blink.BlinkElement.$scrollLeft_Getter(this).round(); | 1428 int get scrollLeft => _blink.BlinkElement.scrollLeft_Getter(this).round(); |
| 1429 | 1429 |
| 1430 @DomName('Element.scrollLeft') | 1430 @DomName('Element.scrollLeft') |
| 1431 @DocsEditable() | 1431 @DocsEditable() |
| 1432 void set scrollLeft(int value) => _blink.BlinkElement.$scrollLeft_Setter(this,
value.round()); | 1432 void set scrollLeft(int value) => _blink.BlinkElement.scrollLeft_Setter_long(t
his, value.round()); |
| 1433 | 1433 |
| 1434 @DomName('Element.scrollTop') | 1434 @DomName('Element.scrollTop') |
| 1435 @DocsEditable() | 1435 @DocsEditable() |
| 1436 int get scrollTop => _blink.BlinkElement.$scrollTop_Getter(this).round(); | 1436 int get scrollTop => _blink.BlinkElement.scrollTop_Getter(this).round(); |
| 1437 | 1437 |
| 1438 @DomName('Element.scrollTop') | 1438 @DomName('Element.scrollTop') |
| 1439 @DocsEditable() | 1439 @DocsEditable() |
| 1440 void set scrollTop(int value) => _blink.BlinkElement.$scrollTop_Setter(this, v
alue.round()); | 1440 void set scrollTop(int value) => _blink.BlinkElement.scrollTop_Setter_long(thi
s, value.round()); |
| 1441 | 1441 |
| 1442 @DomName('Element.scrollWidth') | 1442 @DomName('Element.scrollWidth') |
| 1443 @DocsEditable() | 1443 @DocsEditable() |
| 1444 int get scrollWidth => _blink.BlinkElement.$scrollWidth_Getter(this).round(); | 1444 int get scrollWidth => _blink.BlinkElement.scrollWidth_Getter(this).round(); |
| 1445 $endif | 1445 $endif |
| 1446 | 1446 |
| 1447 $!MEMBERS | 1447 $!MEMBERS |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 | 1450 |
| 1451 class _ElementFactoryProvider { | 1451 class _ElementFactoryProvider { |
| 1452 | 1452 |
| 1453 @DomName('Document.createElement') | 1453 @DomName('Document.createElement') |
| 1454 $if DART2JS | 1454 $if DART2JS |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1482 const ScrollAlignment._internal(this._value); | 1482 const ScrollAlignment._internal(this._value); |
| 1483 toString() => 'ScrollAlignment.$_value'; | 1483 toString() => 'ScrollAlignment.$_value'; |
| 1484 | 1484 |
| 1485 /// 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. |
| 1486 static const TOP = const ScrollAlignment._internal('TOP'); | 1486 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1487 /// Attempt to center the element in the scrollable area. | 1487 /// Attempt to center the element in the scrollable area. |
| 1488 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1488 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1489 /// 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. |
| 1490 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1490 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1491 } | 1491 } |
| OLD | NEW |