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

Unified Diff: packages/charted/lib/core/utils/namespace.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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 | « packages/charted/lib/core/utils/lists.dart ('k') | packages/charted/lib/core/utils/object_factory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/charted/lib/core/utils/namespace.dart
diff --git a/packages/charted/lib/core/utils/namespace.dart b/packages/charted/lib/core/utils/namespace.dart
index 7d1d8d435eae0a5413224534285ee902aafad1a7..00af84cfd61a0c5eec034afd233556c4c7506bd4 100644
--- a/packages/charted/lib/core/utils/namespace.dart
+++ b/packages/charted/lib/core/utils/namespace.dart
@@ -13,7 +13,7 @@ part of charted.core.utils;
/// namespace.
class Namespace {
/// Supported namespace prefixes mapped to their URIs.
- static const Map<String,String> NS_PREFIXES = const {
+ static const Map<String, String> NS_PREFIXES = const {
"svg": "http://www.w3.org/2000/svg",
"xhtml": "http://www.w3.org/1999/xhtml",
"xlink": "http://www.w3.org/1999/xlink",
@@ -30,10 +30,10 @@ class Namespace {
return parent.ownerDocument.createElementNS(parent.namespaceUri, tag);
}
Namespace parsed = new Namespace._internal(tag, separatorIndex);
- return parsed.namespaceUri == null ?
- parent.ownerDocument.createElementNS(parent.namespaceUri, tag) :
- parent.ownerDocument.createElementNS(parsed.namespaceUri,
- parsed.localName);
+ return parsed.namespaceUri == null
+ ? parent.ownerDocument.createElementNS(parent.namespaceUri, tag)
+ : parent.ownerDocument
+ .createElementNS(parsed.namespaceUri, parsed.localName);
}
/// Local part of the Element's tag name.
« no previous file with comments | « packages/charted/lib/core/utils/lists.dart ('k') | packages/charted/lib/core/utils/object_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698