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

Side by Side Diff: tools/dom/templates/html/impl/impl_HTMLTemplateElement.darttemplate

Issue 17917002: Continue updating MDV. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 7 years, 5 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 | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 part of $LIBRARYNAME; 7 part of $LIBRARYNAME;
8 8
9 9
10 /** 10 /**
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // template. 266 // template.
267 // TODO(jmesserly): content is DocumentFragment or Element 267 // TODO(jmesserly): content is DocumentFragment or Element
268 var descendents = (content as dynamic).queryAll(_allTemplatesSelectors); 268 var descendents = (content as dynamic).queryAll(_allTemplatesSelectors);
269 if (content is Element && (content as Element).isTemplate) { 269 if (content is Element && (content as Element).isTemplate) {
270 _bootstrap(content); 270 _bootstrap(content);
271 } 271 }
272 272
273 descendents.forEach(_bootstrap); 273 descendents.forEach(_bootstrap);
274 } 274 }
275 275
276 static final String _allTemplatesSelectors = 'template, option[template], ' + 276 static final String _allTemplatesSelectors =
277 'template, option[template], optgroup[template], ' +
277 Element._TABLE_TAGS.keys.map((k) => "$k[template]").join(", "); 278 Element._TABLE_TAGS.keys.map((k) => "$k[template]").join(", ");
278 279
279 static bool _initStyles; 280 static bool _initStyles;
280 281
281 static void _injectStylesheet() { 282 static void _injectStylesheet() {
282 if (_initStyles == true) return; 283 if (_initStyles == true) return;
283 _initStyles = true; 284 _initStyles = true;
284 285
285 var style = new StyleElement(); 286 var style = new StyleElement();
286 style.text = r''' 287 style.text = r'''
(...skipping 13 matching lines...) Expand all
300 document.head.append(style); 301 document.head.append(style);
301 } 302 }
302 303
303 /** 304 /**
304 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for 305 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for
305 * more information. 306 * more information.
306 */ 307 */
307 @Experimental 308 @Experimental
308 static Map<String, CustomBindingSyntax> syntax = {}; 309 static Map<String, CustomBindingSyntax> syntax = {};
309 } 310 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698