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

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

Issue 1236793006: Fix type problem with FilteredElementList._iterable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes Created 5 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
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/html/filteredelementlist_test.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 /** 1 /**
2 * Scalable Vector Graphics: 2 * Scalable Vector Graphics:
3 * Two-dimensional vector graphics with support for events and animation. 3 * Two-dimensional vector graphics with support for events and animation.
4 * 4 *
5 * For details about the features and syntax of SVG, a W3C standard, 5 * For details about the features and syntax of SVG, a W3C standard,
6 * refer to the 6 * refer to the
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/).
8 */ 8 */
9 library dart.dom.svg; 9 library dart.dom.svg;
10 10
(...skipping 5430 matching lines...) Expand 10 before | Expand all | Expand 10 after
5441 } else { 5441 } else {
5442 parentElement = new SvgSvgElement(); 5442 parentElement = new SvgSvgElement();
5443 } 5443 }
5444 var fragment = parentElement.createFragment(svg, validator: validator, 5444 var fragment = parentElement.createFragment(svg, validator: validator,
5445 treeSanitizer: treeSanitizer); 5445 treeSanitizer: treeSanitizer);
5446 return fragment.nodes.where((e) => e is SvgElement).single; 5446 return fragment.nodes.where((e) => e is SvgElement).single;
5447 } 5447 }
5448 5448
5449 CssClassSet get classes => new _AttributeClassSet(this); 5449 CssClassSet get classes => new _AttributeClassSet(this);
5450 5450
5451 List<Element> get children => new FilteredElementList<Element>(this); 5451 List<Element> get children => new FilteredElementList(this);
5452 5452
5453 void set children(List<Element> value) { 5453 void set children(List<Element> value) {
5454 final children = this.children; 5454 final children = this.children;
5455 children.clear(); 5455 children.clear();
5456 children.addAll(value); 5456 children.addAll(value);
5457 } 5457 }
5458 5458
5459 String get outerHtml { 5459 String get outerHtml {
5460 final container = new Element.tag("div"); 5460 final container = new Element.tag("div");
5461 final SvgElement cloned = this.clone(true); 5461 final SvgElement cloned = this.clone(true);
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
7531 @DocsEditable() 7531 @DocsEditable()
7532 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7532 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7533 /** 7533 /**
7534 * Constructor instantiated by the DOM when a custom element has been created. 7534 * Constructor instantiated by the DOM when a custom element has been created.
7535 * 7535 *
7536 * This can only be called by subclasses from their created constructor. 7536 * This can only be called by subclasses from their created constructor.
7537 */ 7537 */
7538 _SVGVKernElement.created() : super.created(); 7538 _SVGVKernElement.created() : super.created();
7539 7539
7540 } 7540 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/html/filteredelementlist_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698