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

Unified Diff: utils/css/cssworld.dart

Issue 8937017: New CSS parser written in Dart to replace pyparser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Put back for DartC Created 9 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
Index: utils/css/cssworld.dart
diff --git a/utils/css/cssworld.dart b/utils/css/cssworld.dart
index 812fbe6c28949c879e508e5327927a4606bfea8e..c00422ce4432bda12f1307cfb9bca99ad3a081be 100644
--- a/utils/css/cssworld.dart
+++ b/utils/css/cssworld.dart
@@ -8,7 +8,7 @@ class CssWorld {
CssWorld(this.classes, this.ids) {
// Insure no private class names in our CSS world (._foo).
- for (aClass in classes) {
+ for (var aClass in classes) {
if (aClass.startsWith('_')) {
throw new CssSelectorException(
"private class ('_' prefix) not valid for CssWorld $aClass)");
@@ -16,7 +16,7 @@ class CssWorld {
}
// Insure no private element ids in our CSS world (#_foo).
- for (id in ids) {
+ for (var id in ids) {
if (id.startsWith('_')) {
throw new CssSelectorException(
"private id ('_' prefix) not valid for CssWorld $id)");
« no previous file with comments | « utils/css/css.dart ('k') | utils/css/generate.dart » ('j') | utils/css/generate.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698