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

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

Issue 2899173002: Include DDC fixes to dart:html in the main version (Closed)
Patch Set: A few more ddc fixes Created 3 years, 7 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/idl/dart/dart.idl » ('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 5169 matching lines...) Expand 10 before | Expand all | Expand 10 after
5180 // BSD-style license that can be found in the LICENSE file. 5180 // BSD-style license that can be found in the LICENSE file.
5181 5181
5182 class AttributeClassSet extends CssClassSetImpl { 5182 class AttributeClassSet extends CssClassSetImpl {
5183 final Element _element; 5183 final Element _element;
5184 5184
5185 AttributeClassSet(this._element); 5185 AttributeClassSet(this._element);
5186 5186
5187 Set<String> readClasses() { 5187 Set<String> readClasses() {
5188 var classname = _element.attributes['class']; 5188 var classname = _element.attributes['class'];
5189 if (classname is AnimatedString) { 5189 if (classname is AnimatedString) {
5190 classname = classname.baseVal; 5190 classname = (classname as AnimatedString).baseVal;
5191 } 5191 }
5192 5192
5193 Set<String> s = new LinkedHashSet<String>(); 5193 Set<String> s = new LinkedHashSet<String>();
5194 if (classname == null) { 5194 if (classname == null) {
5195 return s; 5195 return s;
5196 } 5196 }
5197 for (String name in classname.split(' ')) { 5197 for (String name in classname.split(' ')) {
5198 String trimmed = name.trim(); 5198 String trimmed = name.trim();
5199 if (!trimmed.isEmpty) { 5199 if (!trimmed.isEmpty) {
5200 s.add(trimmed); 5200 s.add(trimmed);
(...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after
7411 * Constructor instantiated by the DOM when a custom element has been created. 7411 * Constructor instantiated by the DOM when a custom element has been created.
7412 * 7412 *
7413 * This can only be called by subclasses from their created constructor. 7413 * This can only be called by subclasses from their created constructor.
7414 */ 7414 */
7415 _SVGMPathElement.created() : super.created(); 7415 _SVGMPathElement.created() : super.created();
7416 7416
7417 // Override these methods for Dartium _SVGMPathElement can't be abstract. 7417 // Override these methods for Dartium _SVGMPathElement can't be abstract.
7418 AnimatedString get href => 7418 AnimatedString get href =>
7419 _blink.BlinkSVGMPathElement.instance.href_Getter_(this); 7419 _blink.BlinkSVGMPathElement.instance.href_Getter_(this);
7420 } 7420 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/idl/dart/dart.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698