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

Unified Diff: lib/src/html_css_fixup.dart

Issue 49223002: fix webui for sdk 0.8.7 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « lib/src/compiler.dart ('k') | lib/src/messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/html_css_fixup.dart
diff --git a/lib/src/html_css_fixup.dart b/lib/src/html_css_fixup.dart
index 90834289446a530aa5ed6590013b51e06b42639a..0b4f31b90a9930cd33e82dabc236e07ed9cc8039 100644
--- a/lib/src/html_css_fixup.dart
+++ b/lib/src/html_css_fixup.dart
@@ -4,7 +4,7 @@
library html_css_fixup;
-import 'dart:json' as json;
+import 'dart:convert';
import 'package:csslib/parser.dart' as css;
import 'package:csslib/visitor.dart';
@@ -104,7 +104,7 @@ String createCssSelectorsExpression(ComponentInfo info, bool mangled) {
cssVisited..visitTree(styleSheet);
}
- return json.stringify(_createCssSimpleSelectors(cssVisited, info, mangled));
+ return JSON.encode(_createCssSimpleSelectors(cssVisited, info, mangled));
}
// TODO(terry): Need to handle other selectors than IDs/classes like tag name
« no previous file with comments | « lib/src/compiler.dart ('k') | lib/src/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698