Index: sdk/lib/svg/dart2js/svg_dart2js.dart |
=================================================================== |
--- sdk/lib/svg/dart2js/svg_dart2js.dart (revision 26337) |
+++ sdk/lib/svg/dart2js/svg_dart2js.dart (working copy) |
@@ -622,7 +622,7 @@ |
@DocsEditable() |
@DomName('SVGDescElement') |
@Unstable() |
-class DescElement extends SvgElement native "SVGDescElement" { |
+class DescElement extends StyledElement native "SVGDescElement" { |
// To suppress missing implicit constructor warnings. |
factory DescElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1085,7 +1085,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEBlendElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEBlendElement" { |
+class FEBlendElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEBlendElement" { |
// To suppress missing implicit constructor warnings. |
factory FEBlendElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1166,7 +1166,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEColorMatrixElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEColorMatrixElement" { |
+class FEColorMatrixElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEColorMatrixElement" { |
// To suppress missing implicit constructor warnings. |
factory FEColorMatrixElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1243,7 +1243,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEComponentTransferElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEComponentTransferElement" { |
+class FEComponentTransferElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEComponentTransferElement" { |
// To suppress missing implicit constructor warnings. |
factory FEComponentTransferElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1288,7 +1288,7 @@ |
@DocsEditable() |
@DomName('SVGFECompositeElement') |
@Unstable() |
-class FECompositeElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFECompositeElement" { |
+class FECompositeElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFECompositeElement" { |
// To suppress missing implicit constructor warnings. |
factory FECompositeElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1382,7 +1382,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEConvolveMatrixElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEConvolveMatrixElement" { |
+class FEConvolveMatrixElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEConvolveMatrixElement" { |
// To suppress missing implicit constructor warnings. |
factory FEConvolveMatrixElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1491,7 +1491,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEDiffuseLightingElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEDiffuseLightingElement" { |
+class FEDiffuseLightingElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEDiffuseLightingElement" { |
// To suppress missing implicit constructor warnings. |
factory FEDiffuseLightingElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1556,7 +1556,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEDisplacementMapElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEDisplacementMapElement" { |
+class FEDisplacementMapElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEDisplacementMapElement" { |
// To suppress missing implicit constructor warnings. |
factory FEDisplacementMapElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1672,7 +1672,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEFloodElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEFloodElement" { |
+class FEFloodElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEFloodElement" { |
// To suppress missing implicit constructor warnings. |
factory FEFloodElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1809,7 +1809,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEGaussianBlurElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEGaussianBlurElement" { |
+class FEGaussianBlurElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEGaussianBlurElement" { |
// To suppress missing implicit constructor warnings. |
factory FEGaussianBlurElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1870,7 +1870,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEImageElement extends SvgElement implements FilterPrimitiveStandardAttributes, UriReference, ExternalResourcesRequired native "SVGFEImageElement" { |
+class FEImageElement extends StyledElement implements FilterPrimitiveStandardAttributes, UriReference, ExternalResourcesRequired native "SVGFEImageElement" { |
// To suppress missing implicit constructor warnings. |
factory FEImageElement._() { throw new UnsupportedError("Not supported"); } |
@@ -1931,7 +1931,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEMergeElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEMergeElement" { |
+class FEMergeElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEMergeElement" { |
// To suppress missing implicit constructor warnings. |
factory FEMergeElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2003,7 +2003,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEMorphologyElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEMorphologyElement" { |
+class FEMorphologyElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEMorphologyElement" { |
// To suppress missing implicit constructor warnings. |
factory FEMorphologyElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2073,7 +2073,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FEOffsetElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEOffsetElement" { |
+class FEOffsetElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEOffsetElement" { |
// To suppress missing implicit constructor warnings. |
factory FEOffsetElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2165,7 +2165,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FESpecularLightingElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFESpecularLightingElement" { |
+class FESpecularLightingElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFESpecularLightingElement" { |
// To suppress missing implicit constructor warnings. |
factory FESpecularLightingElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2281,7 +2281,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FETileElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFETileElement" { |
+class FETileElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFETileElement" { |
// To suppress missing implicit constructor warnings. |
factory FETileElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2330,7 +2330,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FETurbulenceElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFETurbulenceElement" { |
+class FETurbulenceElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFETurbulenceElement" { |
// To suppress missing implicit constructor warnings. |
factory FETurbulenceElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2423,7 +2423,7 @@ |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Unstable() |
-class FilterElement extends SvgElement implements UriReference, ExternalResourcesRequired native "SVGFilterElement" { |
+class FilterElement extends StyledElement implements UriReference, ExternalResourcesRequired native "SVGFilterElement" { |
// To suppress missing implicit constructor warnings. |
factory FilterElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2590,7 +2590,7 @@ |
@DocsEditable() |
@DomName('SVGGraphicsElement') |
@Experimental() // untriaged |
-class GraphicsElement extends SvgElement implements Tests native "SVGGraphicsElement" { |
+class GraphicsElement extends StyledElement implements Tests native "SVGGraphicsElement" { |
// To suppress missing implicit constructor warnings. |
factory GraphicsElement._() { throw new UnsupportedError("Not supported"); } |
@@ -2945,7 +2945,7 @@ |
@DocsEditable() |
@DomName('SVGMarkerElement') |
@Unstable() |
-class MarkerElement extends SvgElement implements FitToViewBox, ExternalResourcesRequired native "SVGMarkerElement" { |
+class MarkerElement extends StyledElement implements FitToViewBox, ExternalResourcesRequired native "SVGMarkerElement" { |
// To suppress missing implicit constructor warnings. |
factory MarkerElement._() { throw new UnsupportedError("Not supported"); } |
@@ -3037,7 +3037,7 @@ |
@DocsEditable() |
@DomName('SVGMaskElement') |
@Unstable() |
-class MaskElement extends SvgElement implements ExternalResourcesRequired, Tests native "SVGMaskElement" { |
+class MaskElement extends StyledElement implements ExternalResourcesRequired, Tests native "SVGMaskElement" { |
// To suppress missing implicit constructor warnings. |
factory MaskElement._() { throw new UnsupportedError("Not supported"); } |
@@ -4088,7 +4088,7 @@ |
@DocsEditable() |
@DomName('SVGPatternElement') |
@Unstable() |
-class PatternElement extends SvgElement implements FitToViewBox, UriReference, ExternalResourcesRequired, Tests native "SVGPatternElement" { |
+class PatternElement extends StyledElement implements FitToViewBox, UriReference, ExternalResourcesRequired, Tests native "SVGPatternElement" { |
// To suppress missing implicit constructor warnings. |
factory PatternElement._() { throw new UnsupportedError("Not supported"); } |
@@ -4570,7 +4570,7 @@ |
@DocsEditable() |
@DomName('SVGStopElement') |
@Unstable() |
-class StopElement extends SvgElement native "SVGStopElement" { |
+class StopElement extends StyledElement native "SVGStopElement" { |
// To suppress missing implicit constructor warnings. |
factory StopElement._() { throw new UnsupportedError("Not supported"); } |
@@ -4713,6 +4713,24 @@ |
@DocsEditable() |
+@DomName('SVGStyledElement') |
+@Unstable() |
+class StyledElement extends SvgElement native "SVGStyledElement" { |
+ // To suppress missing implicit constructor warnings. |
+ factory StyledElement._() { throw new UnsupportedError("Not supported"); } |
+ |
+ // Shadowing definition. |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
+ |
+ // Use implementation from Element. |
+ // final CssStyleDeclaration style; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('SVGDocument') |
@Unstable() |
class SvgDocument extends Document native "SVGDocument" { |
@@ -4839,16 +4857,17 @@ |
factory SvgElement._() { throw new UnsupportedError("Not supported"); } |
// Shadowing definition. |
- AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
+ String get id => JS("String", "#.id", this); |
+ void set id(String value) { |
+ JS("void", "#.id = #", this, value); |
+ } |
+ |
@JSName('ownerSVGElement') |
@DomName('SVGElement.ownerSVGElement') |
@DocsEditable() |
final SvgSvgElement ownerSvgElement; |
- // Use implementation from Element. |
- // final CssStyleDeclaration style; |
- |
@DomName('SVGElement.viewportElement') |
@DocsEditable() |
final SvgElement viewportElement; |
@@ -4867,11 +4886,6 @@ |
@Experimental() // untriaged |
String xmlspace; |
- @DomName('SVGElement.getPresentationAttribute') |
- @DocsEditable() |
- @Experimental() // untriaged |
- _CSSValue getPresentationAttribute(String name) native; |
- |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5103,7 +5117,7 @@ |
@DocsEditable() |
@DomName('SVGSymbolElement') |
@Unstable() |
-class SymbolElement extends SvgElement implements FitToViewBox, ExternalResourcesRequired native "SVGSymbolElement" { |
+class SymbolElement extends StyledElement implements FitToViewBox, ExternalResourcesRequired native "SVGSymbolElement" { |
// To suppress missing implicit constructor warnings. |
factory SymbolElement._() { throw new UnsupportedError("Not supported"); } |
@@ -5345,7 +5359,7 @@ |
@DocsEditable() |
@DomName('SVGTitleElement') |
@Unstable() |
-class TitleElement extends SvgElement native "SVGTitleElement" { |
+class TitleElement extends StyledElement native "SVGTitleElement" { |
// To suppress missing implicit constructor warnings. |
factory TitleElement._() { throw new UnsupportedError("Not supported"); } |
@@ -5847,7 +5861,7 @@ |
@DocsEditable() |
@DomName('SVGGradientElement') |
@Unstable() |
-class _GradientElement extends SvgElement implements UriReference, ExternalResourcesRequired native "SVGGradientElement" { |
+class _GradientElement extends StyledElement implements UriReference, ExternalResourcesRequired native "SVGGradientElement" { |
// To suppress missing implicit constructor warnings. |
factory _GradientElement._() { throw new UnsupportedError("Not supported"); } |
@@ -5985,7 +5999,7 @@ |
@DocsEditable() |
@DomName('SVGFEDropShadowElement') |
@Experimental() // nonstandard |
-abstract class _SVGFEDropShadowElement extends SvgElement implements FilterPrimitiveStandardAttributes native "SVGFEDropShadowElement" { |
+abstract class _SVGFEDropShadowElement extends StyledElement implements FilterPrimitiveStandardAttributes native "SVGFEDropShadowElement" { |
// To suppress missing implicit constructor warnings. |
factory _SVGFEDropShadowElement._() { throw new UnsupportedError("Not supported"); } |
@@ -6087,7 +6101,7 @@ |
@DocsEditable() |
@DomName('SVGGlyphRefElement') |
@Unstable() |
-abstract class _SVGGlyphRefElement extends SvgElement implements UriReference native "SVGGlyphRefElement" { |
+abstract class _SVGGlyphRefElement extends StyledElement implements UriReference native "SVGGlyphRefElement" { |
// To suppress missing implicit constructor warnings. |
factory _SVGGlyphRefElement._() { throw new UnsupportedError("Not supported"); } |
@@ -6136,7 +6150,7 @@ |
@DocsEditable() |
@DomName('SVGMissingGlyphElement') |
@Unstable() |
-abstract class _SVGMissingGlyphElement extends SvgElement native "SVGMissingGlyphElement" { |
+abstract class _SVGMissingGlyphElement extends StyledElement native "SVGMissingGlyphElement" { |
// To suppress missing implicit constructor warnings. |
factory _SVGMissingGlyphElement._() { throw new UnsupportedError("Not supported"); } |
} |