| 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 Elements let authors define their own elements. Authors associate code | 6 * Custom Elements let authors define their own elements. Authors associate code |
| 7 * with custom tag names, and then use those custom tag names as they would any | 7 * with custom tag names, and then use those custom tag names as they would any |
| 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> | 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> |
| 9 * for more information. | 9 * for more information. |
| 10 */ | 10 */ |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 host.$dom_setAttributeNS(namespaceUri, localName, value); | 468 host.$dom_setAttributeNS(namespaceUri, localName, value); |
| 469 } | 469 } |
| 470 | 470 |
| 471 Rect getBoundingClientRect() => host.getBoundingClientRect(); | 471 Rect getBoundingClientRect() => host.getBoundingClientRect(); |
| 472 | 472 |
| 473 List<Rect> getClientRects() => host.getClientRects(); | 473 List<Rect> getClientRects() => host.getClientRects(); |
| 474 | 474 |
| 475 List<Node> getElementsByClassName(String name) => | 475 List<Node> getElementsByClassName(String name) => |
| 476 host.getElementsByClassName(name); | 476 host.getElementsByClassName(name); |
| 477 | 477 |
| 478 List<Node> $dom_querySelectorAll(String selectors) => | |
| 479 host.$dom_querySelectorAll(selectors); | |
| 480 | |
| 481 void $dom_setAttribute(String name, String value) => | 478 void $dom_setAttribute(String name, String value) => |
| 482 host.$dom_setAttribute(name, value); | 479 host.$dom_setAttribute(name, value); |
| 483 | 480 |
| 484 List<Node> get $dom_childNodes => host.$dom_childNodes; | 481 List<Node> get $dom_childNodes => host.$dom_childNodes; |
| 485 | 482 |
| 486 Node get firstChild => host.firstChild; | 483 Node get firstChild => host.firstChild; |
| 487 | 484 |
| 488 Node get lastChild => host.lastChild; | 485 Node get lastChild => host.lastChild; |
| 489 | 486 |
| 490 String get localName => host.localName; | 487 String get localName => host.localName; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 for (var removed in record.removedNodes) { | 611 for (var removed in record.removedNodes) { |
| 615 if (identical(node, removed)) { | 612 if (identical(node, removed)) { |
| 616 observer.disconnect(); | 613 observer.disconnect(); |
| 617 element.removed(); | 614 element.removed(); |
| 618 return; | 615 return; |
| 619 } | 616 } |
| 620 } | 617 } |
| 621 } | 618 } |
| 622 }).observe(element.parentNode, childList: true); | 619 }).observe(element.parentNode, childList: true); |
| 623 } | 620 } |
| OLD | NEW |