OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
6 * Custom DOM elements. | 6 * Custom DOM elements. |
7 * | 7 * |
8 * This library provides access to the Polymer project's | 8 * This library provides access to the Polymer project's |
9 * [Custom Elements] | 9 * [Custom Elements] |
10 * (http://www.polymer-project.org/platform/custom-elements.html) | 10 * (http://www.polymer-project.org/platform/custom-elements.html) |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 474 |
475 @deprecated | 475 @deprecated |
476 int get clientLeft => client.left; | 476 int get clientLeft => client.left; |
477 | 477 |
478 @deprecated | 478 @deprecated |
479 int get clientTop => client.top; | 479 int get clientTop => client.top; |
480 | 480 |
481 @deprecated | 481 @deprecated |
482 int get clientWidth => client.width; | 482 int get clientWidth => client.width; |
483 | 483 |
484 Rect get client => host.client; | 484 Rectangle get client => host.client; |
485 | 485 |
486 @deprecated | 486 @deprecated |
487 int get offsetHeight => offset.height; | 487 int get offsetHeight => offset.height; |
488 | 488 |
489 @deprecated | 489 @deprecated |
490 int get offsetLeft => offset.left; | 490 int get offsetLeft => offset.left; |
491 | 491 |
492 @deprecated | 492 @deprecated |
493 int get offsetTop => offset.top; | 493 int get offsetTop => offset.top; |
494 | 494 |
495 @deprecated | 495 @deprecated |
496 int get offsetWidth => offset.width; | 496 int get offsetWidth => offset.width; |
497 | 497 |
498 Rect get offset => host.offset; | 498 Rectangle get offset => host.offset; |
499 | 499 |
500 int get scrollHeight => host.scrollHeight; | 500 int get scrollHeight => host.scrollHeight; |
501 | 501 |
502 int get scrollLeft => host.scrollLeft; | 502 int get scrollLeft => host.scrollLeft; |
503 | 503 |
504 int get scrollTop => host.scrollTop; | 504 int get scrollTop => host.scrollTop; |
505 | 505 |
506 set scrollLeft(int value) { host.scrollLeft = value; } | 506 set scrollLeft(int value) { host.scrollLeft = value; } |
507 | 507 |
508 set scrollTop(int value) { host.scrollTop = value; } | 508 set scrollTop(int value) { host.scrollTop = value; } |
509 | 509 |
510 int get scrollWidth => host.scrollWidth; | 510 int get scrollWidth => host.scrollWidth; |
511 | 511 |
512 Rect getBoundingClientRect() => host.getBoundingClientRect(); | 512 Rectangle getBoundingClientRect() => host.getBoundingClientRect(); |
513 | 513 |
514 List<Rect> getClientRects() => host.getClientRects(); | 514 List<Rectangle> getClientRects() => host.getClientRects(); |
515 | 515 |
516 List<Node> getElementsByClassName(String name) => | 516 List<Node> getElementsByClassName(String name) => |
517 host.getElementsByClassName(name); | 517 host.getElementsByClassName(name); |
518 | 518 |
519 Node get firstChild => host.firstChild; | 519 Node get firstChild => host.firstChild; |
520 | 520 |
521 Node get lastChild => host.lastChild; | 521 Node get lastChild => host.lastChild; |
522 | 522 |
523 String get localName => host.localName; | 523 String get localName => host.localName; |
524 | 524 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 for (var removed in record.removedNodes) { | 647 for (var removed in record.removedNodes) { |
648 if (identical(node, removed)) { | 648 if (identical(node, removed)) { |
649 observer.disconnect(); | 649 observer.disconnect(); |
650 element.removed(); | 650 element.removed(); |
651 return; | 651 return; |
652 } | 652 } |
653 } | 653 } |
654 } | 654 } |
655 }).observe(element.parentNode, childList: true); | 655 }).observe(element.parentNode, childList: true); |
656 } | 656 } |
OLD | NEW |