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

Unified Diff: sdk/lib/html/src/shared_SVGFactoryProviders.dart

Issue 11364186: Dartifying SVG library class names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing to latest, updating for style guide. Created 8 years, 1 month 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
« no previous file with comments | « sdk/lib/html/scripts/systemhtml.py ('k') | sdk/lib/html/templates/html/impl/impl_SVGElement.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/src/shared_SVGFactoryProviders.dart
diff --git a/sdk/lib/html/src/shared_SVGFactoryProviders.dart b/sdk/lib/html/src/shared_SVGFactoryProviders.dart
index 833f7e8c288806936946656b5e5f647ce3d57f73..7a5759a40baa9c51a78225f61771cfdf5cbd9b87 100644
--- a/sdk/lib/html/src/shared_SVGFactoryProviders.dart
+++ b/sdk/lib/html/src/shared_SVGFactoryProviders.dart
@@ -6,20 +6,20 @@ part of svg;
final _START_TAG_REGEXP = new RegExp('<(\\w+)');
-class _SVGElementFactoryProvider {
- static SVGElement createSVGElement_tag(String tag) {
+class _SvgElementFactoryProvider {
+ static SvgElement createSvgElement_tag(String tag) {
final Element temp =
document.$dom_createElementNS("http://www.w3.org/2000/svg", tag);
return temp;
}
- static SVGElement createSVGElement_svg(String svg) {
+ static SvgElement createSvgElement_svg(String svg) {
Element parentTag;
final match = _START_TAG_REGEXP.firstMatch(svg);
if (match != null && match.group(1).toLowerCase() == 'svg') {
parentTag = new Element.tag('div');
} else {
- parentTag = new SVGSVGElement();
+ parentTag = new SvgSvgElement();
}
parentTag.innerHTML = svg;
@@ -31,9 +31,9 @@ class _SVGElementFactoryProvider {
}
}
-class _SVGSVGElementFactoryProvider {
- static SVGSVGElement createSVGSVGElement() {
- final el = new SVGElement.tag("svg");
+class _SvgSvgElementFactoryProvider {
+ static SvgSvgElement createSvgSvgElement() {
+ final el = new SvgElement.tag("svg");
// The SVG spec requires the version attribute to match the spec version
el.attributes['version'] = "1.1";
return el;
« no previous file with comments | « sdk/lib/html/scripts/systemhtml.py ('k') | sdk/lib/html/templates/html/impl/impl_SVGElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698