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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 24084004: Exposing document.createElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
OLDNEW
1 library dart.dom.svg; 1 library dart.dom.svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev' hide deprecated; 5 import 'dart:_collection-dev' hide deprecated;
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 // DO NOT EDIT 9 // DO NOT EDIT
10 // Auto-generated dart:svg library. 10 // Auto-generated dart:svg library.
11 11
12 12
13 13
14 14
15 15
16 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17 // for details. All rights reserved. Use of this source code is governed by a 17 // for details. All rights reserved. Use of this source code is governed by a
18 // BSD-style license that can be found in the LICENSE file. 18 // BSD-style license that can be found in the LICENSE file.
19 19
20 20
21 class _SvgElementFactoryProvider { 21 class _SvgElementFactoryProvider {
22 static SvgElement createSvgElement_tag(String tag) { 22 static SvgElement createSvgElement_tag(String tag) {
23 final Element temp = 23 final Element temp =
24 document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); 24 document.createElementNS("http://www.w3.org/2000/svg", tag);
25 return temp; 25 return temp;
26 } 26 }
27 } 27 }
28 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 28 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29 // for details. All rights reserved. Use of this source code is governed by a 29 // for details. All rights reserved. Use of this source code is governed by a
30 // BSD-style license that can be found in the LICENSE file. 30 // BSD-style license that can be found in the LICENSE file.
31 31
32 // WARNING: Do not edit - generated code. 32 // WARNING: Do not edit - generated code.
33 33
34 34
(...skipping 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after
5311 _element.attributes['class'] = s.join(' '); 5311 _element.attributes['class'] = s.join(' ');
5312 } 5312 }
5313 } 5313 }
5314 5314
5315 @DomName('SVGElement') 5315 @DomName('SVGElement')
5316 @Unstable() 5316 @Unstable()
5317 class SvgElement extends Element { 5317 class SvgElement extends Element {
5318 static final _START_TAG_REGEXP = new RegExp('<(\\w+)'); 5318 static final _START_TAG_REGEXP = new RegExp('<(\\w+)');
5319 5319
5320 factory SvgElement.tag(String tag) => 5320 factory SvgElement.tag(String tag) =>
5321 document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); 5321 document.createElementNS("http://www.w3.org/2000/svg", tag);
5322 factory SvgElement.svg(String svg, 5322 factory SvgElement.svg(String svg,
5323 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { 5323 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
5324 5324
5325 if (validator == null && treeSanitizer == null) { 5325 if (validator == null && treeSanitizer == null) {
5326 validator = new NodeValidatorBuilder.common()..allowSvg(); 5326 validator = new NodeValidatorBuilder.common()..allowSvg();
5327 } 5327 }
5328 5328
5329 final match = _START_TAG_REGEXP.firstMatch(svg); 5329 final match = _START_TAG_REGEXP.firstMatch(svg);
5330 var parentElement; 5330 var parentElement;
5331 if (match != null && match.group(1).toLowerCase() == 'svg') { 5331 if (match != null && match.group(1).toLowerCase() == 'svg') {
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
6892 @Unstable() 6892 @Unstable()
6893 abstract class _SVGVKernElement extends SvgElement { 6893 abstract class _SVGVKernElement extends SvgElement {
6894 // To suppress missing implicit constructor warnings. 6894 // To suppress missing implicit constructor warnings.
6895 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } 6895 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); }
6896 6896
6897 @DomName('SVGVKernElement.SVGVKernElement') 6897 @DomName('SVGVKernElement.SVGVKernElement')
6898 @DocsEditable() 6898 @DocsEditable()
6899 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 6899 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
6900 6900
6901 } 6901 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/html/custom/document_register_type_extensions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698