| Index: sdk/lib/svg/dartium/svg_dartium.dart
|
| diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
|
| index 421f75287bca01be8a0bd5981ef529e6de2b9ab0..950101091ea37ff697c8163afb1b5c8b03d244df 100644
|
| --- a/sdk/lib/svg/dartium/svg_dartium.dart
|
| +++ b/sdk/lib/svg/dartium/svg_dartium.dart
|
| @@ -1438,17 +1438,25 @@ class SVGElement extends Element {
|
| elements.addAll(value);
|
| }
|
|
|
| + List<Element> get children => new FilteredElementList(this);
|
| +
|
| + void set children(Collection<Element> value) {
|
| + final children = this.children;
|
| + children.clear();
|
| + children.addAll(value);
|
| + }
|
| +
|
| String get outerHTML {
|
| final container = new Element.tag("div");
|
| final SVGElement cloned = this.clone(true);
|
| - container.elements.add(cloned);
|
| + container.children.add(cloned);
|
| return container.innerHTML;
|
| }
|
|
|
| String get innerHTML {
|
| final container = new Element.tag("div");
|
| final SVGElement cloned = this.clone(true);
|
| - container.elements.addAll(cloned.elements);
|
| + container.children.addAll(cloned.children);
|
| return container.innerHTML;
|
| }
|
|
|
| @@ -1457,7 +1465,7 @@ class SVGElement extends Element {
|
| // Wrap the SVG string in <svg> so that SVGElements are created, rather than
|
| // HTMLElements.
|
| container.innerHTML = '<svg version="1.1">$svg</svg>';
|
| - this.elements = container.elements[0].elements;
|
| + this.children = container.children[0].children;
|
| }
|
|
|
| SVGElement.internal(): super.internal();
|
|
|