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

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

Issue 2718713003: Redo "Refined types for most HtmlElement factory constructors" (Closed)
Patch Set: ShadowElement() is unreliable Created 3 years, 10 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') | tools/dom/scripts/css_code_generator.py » ('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 6108 matching lines...) Expand 10 before | Expand all | Expand 10 after
6119 6119
6120 List<Element> get children => new FilteredElementList(this); 6120 List<Element> get children => new FilteredElementList(this);
6121 6121
6122 set children(List<Element> value) { 6122 set children(List<Element> value) {
6123 final children = this.children; 6123 final children = this.children;
6124 children.clear(); 6124 children.clear();
6125 children.addAll(value); 6125 children.addAll(value);
6126 } 6126 }
6127 6127
6128 String get outerHtml { 6128 String get outerHtml {
6129 final container = new Element.tag("div"); 6129 final container = new DivElement();
6130 final SvgElement cloned = this.clone(true); 6130 final SvgElement cloned = this.clone(true);
6131 container.children.add(cloned); 6131 container.children.add(cloned);
6132 return container.innerHtml; 6132 return container.innerHtml;
6133 } 6133 }
6134 6134
6135 String get innerHtml { 6135 String get innerHtml {
6136 final container = new Element.tag("div"); 6136 final container = new DivElement();
6137 final SvgElement cloned = this.clone(true); 6137 final SvgElement cloned = this.clone(true);
6138 container.children.addAll(cloned.children); 6138 container.children.addAll(cloned.children);
6139 return container.innerHtml; 6139 return container.innerHtml;
6140 } 6140 }
6141 6141
6142 set innerHtml(String value) { 6142 set innerHtml(String value) {
6143 this.setInnerHtml(value); 6143 this.setInnerHtml(value);
6144 } 6144 }
6145 6145
6146 DocumentFragment createFragment(String svg, 6146 DocumentFragment createFragment(String svg,
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
8084 * Constructor instantiated by the DOM when a custom element has been created. 8084 * Constructor instantiated by the DOM when a custom element has been created.
8085 * 8085 *
8086 * This can only be called by subclasses from their created constructor. 8086 * This can only be called by subclasses from their created constructor.
8087 */ 8087 */
8088 _SVGMPathElement.created() : super.created(); 8088 _SVGMPathElement.created() : super.created();
8089 8089
8090 // Override these methods for Dartium _SVGMPathElement can't be abstract. 8090 // Override these methods for Dartium _SVGMPathElement can't be abstract.
8091 AnimatedString get href => _blink.BlinkSVGMPathElement.instance.href_Getter_(t his); 8091 AnimatedString get href => _blink.BlinkSVGMPathElement.instance.href_Getter_(t his);
8092 } 8092 }
8093 8093
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/scripts/css_code_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698