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

Side by Side Diff: client/dom/templates/html/frog/impl_Element.darttemplate

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 | « no previous file | client/html/src/ElementWrappingImplementation.dart » ('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) 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 // 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 _ElementJs _element; 8 final _ElementJs _element;
9 final _HTMLCollectionJs _childElements; 9 final _HTMLCollectionJs _childElements;
10 10
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); 299 final _START_TAG_REGEXP = const RegExp('<(\\w+)');
300 300
301 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 301 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
302 302
303 static final _CUSTOM_PARENT_TAG_MAP = const { 303 static final _CUSTOM_PARENT_TAG_MAP = const {
304 'body' : 'html', 304 'body' : 'html',
305 'head' : 'html', 305 'head' : 'html',
306 'caption' : 'table', 306 'caption' : 'table',
307 'td': 'tr', 307 'td': 'tr',
308 'tbody': 'table',
309 'colgroup': 'table', 308 'colgroup': 'table',
310 'col' : 'colgroup', 309 'col' : 'colgroup',
311 'tr' : 'tbody', 310 'tr' : 'tbody',
312 'tbody' : 'table', 311 'tbody' : 'table',
313 'tfoot' : 'table', 312 'tfoot' : 'table',
314 'thead' : 'table', 313 'thead' : 'table',
315 'track' : 'audio', 314 'track' : 'audio',
316 }; 315 };
317 316
318 /** @domName Document.createElement */ 317 /** @domName Document.createElement */
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 /** @domName Window.getComputedStyle */ 454 /** @domName Window.getComputedStyle */
456 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { 455 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
457 return _createMeasurementFuture(() => 456 return _createMeasurementFuture(() =>
458 _window._getComputedStyle(this, pseudoElement), 457 _window._getComputedStyle(this, pseudoElement),
459 new Completer<CSSStyleDeclaration>()); 458 new Completer<CSSStyleDeclaration>());
460 } 459 }
461 460
462 _ElementJs clone(bool deep) native; 461 _ElementJs clone(bool deep) native;
463 $!MEMBERS 462 $!MEMBERS
464 } 463 }
OLDNEW
« no previous file with comments | « no previous file | client/html/src/ElementWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698