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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 12857006: Removing CssValue APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index dea8a56e81ecd77ba25c42d9554d989ff32ff426..90d8b2850daee7d69c3c82bf5633d84545077f9b 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -738,45 +738,6 @@ class ClipPathElement extends StyledElement implements Transformable, Tests, Ext
@DocsEditable
-@DomName('SVGColor')
-class Color extends CssValue native "*SVGColor" {
-
- static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
-
- static const int SVG_COLORTYPE_RGBCOLOR = 1;
-
- static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
-
- static const int SVG_COLORTYPE_UNKNOWN = 0;
-
- @DomName('SVGColor.colorType')
- @DocsEditable
- final int colorType;
-
- @DomName('SVGColor.rgbColor')
- @DocsEditable
- final CssRgbColor rgbColor;
-
- @DomName('SVGColor.setColor')
- @DocsEditable
- void setColor(int colorType, String rgbColor, String iccColor) native;
-
- @JSName('setRGBColor')
- @DomName('SVGColor.setRGBColor')
- @DocsEditable
- void setRgbColor(String rgbColor) native;
-
- @JSName('setRGBColorICCColor')
- @DomName('SVGColor.setRGBColorICCColor')
- @DocsEditable
- void setRgbColorIccColor(String rgbColor, String iccColor) 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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable
@DomName('SVGDefsElement')
class DefsElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGDefsElement" {
@@ -3916,51 +3877,6 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
@DocsEditable
-@DomName('SVGPaint')
-class Paint extends Color native "*SVGPaint" {
-
- static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
-
- static const int SVG_PAINTTYPE_NONE = 101;
-
- static const int SVG_PAINTTYPE_RGBCOLOR = 1;
-
- static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
-
- static const int SVG_PAINTTYPE_UNKNOWN = 0;
-
- static const int SVG_PAINTTYPE_URI = 107;
-
- static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
-
- static const int SVG_PAINTTYPE_URI_NONE = 103;
-
- static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
-
- static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
-
- @DomName('SVGPaint.paintType')
- @DocsEditable
- final int paintType;
-
- @DomName('SVGPaint.uri')
- @DocsEditable
- final String uri;
-
- @DomName('SVGPaint.setPaint')
- @DocsEditable
- void setPaint(int paintType, String uri, String rgbColor, String iccColor) native;
-
- @DomName('SVGPaint.setUri')
- @DocsEditable
- void setUri(String uri) 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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable
@DomName('SVGPathElement')
class PathElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGPathElement" {
@@ -5779,10 +5695,6 @@ class StyledElement extends SvgElement native "*SVGStyledElement" {
// Use implementation from Element.
// final CssStyleDeclaration style;
-
- @DomName('SVGStyledElement.getPresentationAttribute')
- @DocsEditable
- 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
@@ -7435,6 +7347,47 @@ class _SVGAltGlyphItemElement extends SvgElement native "*SVGAltGlyphItemElement
@DomName('SVGAnimateColorElement')
class _SVGAnimateColorElement extends AnimationElement native "*SVGAnimateColorElement" {
}
+// Copyright (c) 2013, 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.
+
+
+// Hack because the baseclass is private in dart:html, and we want to omit this
+// type entirely but can't.
+@DocsEditable
+@DomName('SVGColor')
+class _SVGColor native "*SVGColor" {
+
+ static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
+
+ static const int SVG_COLORTYPE_RGBCOLOR = 1;
+
+ static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
+
+ static const int SVG_COLORTYPE_UNKNOWN = 0;
+
+ @DomName('SVGColor.colorType')
+ @DocsEditable
+ final int colorType;
+
+ @DomName('SVGColor.rgbColor')
+ @DocsEditable
+ final _RGBColor rgbColor;
+
+ @DomName('SVGColor.setColor')
+ @DocsEditable
+ void setColor(int colorType, String rgbColor, String iccColor) native;
+
+ @JSName('setRGBColor')
+ @DomName('SVGColor.setRGBColor')
+ @DocsEditable
+ void setRgbColor(String rgbColor) native;
+
+ @JSName('setRGBColorICCColor')
+ @DomName('SVGColor.setRGBColorICCColor')
+ @DocsEditable
+ void setRgbColorIccColor(String rgbColor, String iccColor) 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
// BSD-style license that can be found in the LICENSE file.
@@ -7794,6 +7747,51 @@ class _SVGMissingGlyphElement extends StyledElement native "*SVGMissingGlyphElem
@DocsEditable
+@DomName('SVGPaint')
+class _SVGPaint extends _SVGColor native "*SVGPaint" {
+
+ static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
+
+ static const int SVG_PAINTTYPE_NONE = 101;
+
+ static const int SVG_PAINTTYPE_RGBCOLOR = 1;
+
+ static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
+
+ static const int SVG_PAINTTYPE_UNKNOWN = 0;
+
+ static const int SVG_PAINTTYPE_URI = 107;
+
+ static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
+
+ static const int SVG_PAINTTYPE_URI_NONE = 103;
+
+ static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
+
+ static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
+
+ @DomName('SVGPaint.paintType')
+ @DocsEditable
+ final int paintType;
+
+ @DomName('SVGPaint.uri')
+ @DocsEditable
+ final String uri;
+
+ @DomName('SVGPaint.setPaint')
+ @DocsEditable
+ void setPaint(int paintType, String uri, String rgbColor, String iccColor) native;
+
+ @DomName('SVGPaint.setUri')
+ @DocsEditable
+ void setUri(String uri) 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
+// BSD-style license that can be found in the LICENSE file.
+
+
+@DocsEditable
@DomName('SVGTRefElement')
class _SVGTRefElement extends TextPositioningElement implements UriReference native "*SVGTRefElement" {

Powered by Google App Engine
This is Rietveld 408576698