Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Side by Side Diff: client/html/src/ElementWrappingImplementation.dart

Issue 9431009: Get rid of duplicate 'tbody' keys in CUSTOM_PARENT_TAG_MAP. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/dom/templates/html/frog/impl_Element.darttemplate ('k') | samples/pond/dart_lib.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. 5 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality.
6 class _ChildrenElementList implements ElementList { 6 class _ChildrenElementList implements ElementList {
7 // Raw Element. 7 // Raw Element.
8 final _element; 8 final _element;
9 final _childElements; 9 final _childElements;
10 10
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); 502 final _START_TAG_REGEXP = const RegExp('<(\\w+)');
503 503
504 /** @domName Element, HTMLElement */ 504 /** @domName Element, HTMLElement */
505 class ElementWrappingImplementation extends NodeWrappingImplementation implement s Element { 505 class ElementWrappingImplementation extends NodeWrappingImplementation implement s Element {
506 506
507 static final _CUSTOM_PARENT_TAG_MAP = const { 507 static final _CUSTOM_PARENT_TAG_MAP = const {
508 'body' : 'html', 508 'body' : 'html',
509 'head' : 'html', 509 'head' : 'html',
510 'caption' : 'table', 510 'caption' : 'table',
511 'td': 'tr', 511 'td': 'tr',
512 'tbody': 'table',
513 'colgroup': 'table', 512 'colgroup': 'table',
514 'col' : 'colgroup', 513 'col' : 'colgroup',
515 'tr' : 'tbody', 514 'tr' : 'tbody',
516 'tbody' : 'table', 515 'tbody' : 'table',
517 'tfoot' : 'table', 516 'tfoot' : 'table',
518 'thead' : 'table', 517 'thead' : 'table',
519 'track' : 'audio', 518 'track' : 'audio',
520 }; 519 };
521 520
522 /** @domName Document.createElement */ 521 /** @domName Document.createElement */
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 781
783 ElementEvents get on() { 782 ElementEvents get on() {
784 if (_on === null) { 783 if (_on === null) {
785 _on = new ElementEventsImplementation._wrap(_ptr); 784 _on = new ElementEventsImplementation._wrap(_ptr);
786 } 785 }
787 return _on; 786 return _on;
788 } 787 }
789 788
790 Element clone(bool deep) => super.clone(deep); 789 Element clone(bool deep) => super.clone(deep);
791 } 790 }
OLDNEW
« no previous file with comments | « client/dom/templates/html/frog/impl_Element.darttemplate ('k') | samples/pond/dart_lib.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698