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

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

Issue 1903893003: Fix strong mode errors in SVG (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
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 4628 matching lines...) Expand 10 before | Expand all | Expand 10 after
4639 4639
4640 @DomName('SVGStyleElement.media') 4640 @DomName('SVGStyleElement.media')
4641 @DocsEditable() 4641 @DocsEditable()
4642 String media; 4642 String media;
4643 4643
4644 @DomName('SVGStyleElement.sheet') 4644 @DomName('SVGStyleElement.sheet')
4645 @DocsEditable() 4645 @DocsEditable()
4646 @Experimental() // untriaged 4646 @Experimental() // untriaged
4647 final StyleSheet sheet; 4647 final StyleSheet sheet;
4648 4648
4649 // Shadowing definition. 4649 // Use implementation from Element.
4650 String get title => JS("String", "#.title", this); 4650 // final String title;
4651
4652 set title(String value) {
4653 JS("void", "#.title = #", this, value);
4654 }
4655 4651
4656 @DomName('SVGStyleElement.type') 4652 @DomName('SVGStyleElement.type')
4657 @DocsEditable() 4653 @DocsEditable()
4658 String type; 4654 String type;
4659 } 4655 }
4660 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4656 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4661 // for details. All rights reserved. Use of this source code is governed by a 4657 // for details. All rights reserved. Use of this source code is governed by a
4662 // BSD-style license that can be found in the LICENSE file. 4658 // BSD-style license that can be found in the LICENSE file.
4663 4659
4664 4660
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
5078 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); 5074 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this);
5079 5075
5080 @JSName('ownerSVGElement') 5076 @JSName('ownerSVGElement')
5081 @DomName('SVGElement.ownerSVGElement') 5077 @DomName('SVGElement.ownerSVGElement')
5082 @DocsEditable() 5078 @DocsEditable()
5083 final SvgSvgElement ownerSvgElement; 5079 final SvgSvgElement ownerSvgElement;
5084 5080
5085 // Use implementation from Element. 5081 // Use implementation from Element.
5086 // final CssStyleDeclaration style; 5082 // final CssStyleDeclaration style;
5087 5083
5088 // Shadowing definition. 5084 // Use implementation from Element.
5089 int get tabIndex => JS("int", "#.tabIndex", this); 5085 // final int tabIndex;
5090
5091 set tabIndex(int value) {
5092 JS("void", "#.tabIndex = #", this, value);
5093 }
5094 5086
5095 @DomName('SVGElement.viewportElement') 5087 @DomName('SVGElement.viewportElement')
5096 @DocsEditable() 5088 @DocsEditable()
5097 final SvgElement viewportElement; 5089 final SvgElement viewportElement;
5098 5090
5099 @DomName('SVGElement.blur') 5091 @DomName('SVGElement.blur')
5100 @DocsEditable() 5092 @DocsEditable()
5101 @Experimental() // untriaged 5093 @Experimental() // untriaged
5102 void blur() native; 5094 void blur() native;
5103 5095
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
6458 * Constructor instantiated by the DOM when a custom element has been created. 6450 * Constructor instantiated by the DOM when a custom element has been created.
6459 * 6451 *
6460 * This can only be called by subclasses from their created constructor. 6452 * This can only be called by subclasses from their created constructor.
6461 */ 6453 */
6462 _SVGMPathElement.created() : super.created(); 6454 _SVGMPathElement.created() : super.created();
6463 6455
6464 // From SVGURIReference 6456 // From SVGURIReference
6465 6457
6466 } 6458 }
6467 6459
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698