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

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 11473013: Adding deprecated flag to deprecated members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 svg; 1 library svg;
2 2
3 import 'dart:collection'; 3 import 'dart:collection';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 // DO NOT EDIT 6 // DO NOT EDIT
7 // Auto-generated dart:svg library. 7 // Auto-generated dart:svg library.
8 8
9 9
10 10
(...skipping 16 matching lines...) Expand all
27 static SvgElement createSvgElement_svg(String svg) { 27 static SvgElement createSvgElement_svg(String svg) {
28 Element parentTag; 28 Element parentTag;
29 final match = _START_TAG_REGEXP.firstMatch(svg); 29 final match = _START_TAG_REGEXP.firstMatch(svg);
30 if (match != null && match.group(1).toLowerCase() == 'svg') { 30 if (match != null && match.group(1).toLowerCase() == 'svg') {
31 parentTag = new Element.tag('div'); 31 parentTag = new Element.tag('div');
32 } else { 32 } else {
33 parentTag = new SvgSvgElement(); 33 parentTag = new SvgSvgElement();
34 } 34 }
35 35
36 parentTag.innerHtml = svg; 36 parentTag.innerHtml = svg;
37 if (parentTag.elements.length == 1) return parentTag.elements.removeLast(); 37 if (parentTag.children.length == 1) return parentTag.children.removeLast();
38 38
39 throw new ArgumentError( 39 throw new ArgumentError(
40 'SVG had ${parentTag.elements.length} ' 40 'SVG had ${parentTag.children.length} '
41 'top-level elements but 1 expected'); 41 'top-level children but 1 expected');
42 } 42 }
43 } 43 }
44 44
45 class _SvgSvgElementFactoryProvider { 45 class _SvgSvgElementFactoryProvider {
46 static SvgSvgElement createSvgSvgElement() { 46 static SvgSvgElement createSvgSvgElement() {
47 final el = new SvgElement.tag("svg"); 47 final el = new SvgElement.tag("svg");
48 // The SVG spec requires the version attribute to match the spec version 48 // The SVG spec requires the version attribute to match the spec version
49 el.attributes['version'] = "1.1"; 49 el.attributes['version'] = "1.1";
50 return el; 50 return el;
51 } 51 }
(...skipping 6094 matching lines...) Expand 10 before | Expand all | Expand 10 after
6146 } 6146 }
6147 6147
6148 List<ElementInstance> getRange(int start, int rangeLength) => 6148 List<ElementInstance> getRange(int start, int rangeLength) =>
6149 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); 6149 Lists.getRange(this, start, rangeLength, <ElementInstance>[]);
6150 6150
6151 // -- end List<ElementInstance> mixins. 6151 // -- end List<ElementInstance> mixins.
6152 6152
6153 /// @domName SVGElementInstanceList.item; @docsEditable true 6153 /// @domName SVGElementInstanceList.item; @docsEditable true
6154 ElementInstance item(int index) native; 6154 ElementInstance item(int index) native;
6155 } 6155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698