| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 void scrollByPages(int pages) { | 390 void scrollByPages(int pages) { |
| 391 host.scrollByPages(pages); | 391 host.scrollByPages(pages); |
| 392 } | 392 } |
| 393 | 393 |
| 394 void scrollIntoView([ScrollAlignment alignment]) { | 394 void scrollIntoView([ScrollAlignment alignment]) { |
| 395 host.scrollIntoView(alignment); | 395 host.scrollIntoView(alignment); |
| 396 } | 396 } |
| 397 | 397 |
| 398 bool matches(String selectors) => host.matches(selectors); | 398 bool matches(String selectors) => host.matches(selectors); |
| 399 | 399 |
| 400 bool matchesWithAncestors(String selectors) => |
| 401 host.matchesWithAncestors(selectors); |
| 402 |
| 400 @deprecated | 403 @deprecated |
| 401 void requestFullScreen(int flags) { requestFullscreen(); } | 404 void requestFullScreen(int flags) { requestFullscreen(); } |
| 402 | 405 |
| 403 void requestFullscreen() { host.requestFullscreen(); } | 406 void requestFullscreen() { host.requestFullscreen(); } |
| 404 | 407 |
| 405 void requestPointerLock() { host.requestPointerLock(); } | 408 void requestPointerLock() { host.requestPointerLock(); } |
| 406 | 409 |
| 407 Element query(String selectors) => host.query(selectors); | 410 Element query(String selectors) => host.query(selectors); |
| 408 | 411 |
| 409 ElementList queryAll(String selectors) => host.queryAll(selectors); | 412 ElementList queryAll(String selectors) => host.queryAll(selectors); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 for (var removed in record.removedNodes) { | 659 for (var removed in record.removedNodes) { |
| 657 if (identical(node, removed)) { | 660 if (identical(node, removed)) { |
| 658 observer.disconnect(); | 661 observer.disconnect(); |
| 659 element.removed(); | 662 element.removed(); |
| 660 return; | 663 return; |
| 661 } | 664 } |
| 662 } | 665 } |
| 663 } | 666 } |
| 664 }).observe(element.parentNode, childList: true); | 667 }).observe(element.parentNode, childList: true); |
| 665 } | 668 } |
| OLD | NEW |