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

Unified Diff: pkg/third_party/html5lib/lib/src/treebuilder.dart

Issue 157983005: pkg/third_party/html5lib: lots of cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: const Created 6 years, 10 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 | « pkg/third_party/html5lib/lib/src/tokenizer.dart ('k') | pkg/third_party/html5lib/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/third_party/html5lib/lib/src/treebuilder.dart
diff --git a/pkg/third_party/html5lib/lib/src/treebuilder.dart b/pkg/third_party/html5lib/lib/src/treebuilder.dart
index bb53d58509881ed00855f02a284c94e7d19ed296..adde3bf1537c4d20242e6bbc5b12df08f1e4e379 100644
--- a/pkg/third_party/html5lib/lib/src/treebuilder.dart
+++ b/pkg/third_party/html5lib/lib/src/treebuilder.dart
@@ -12,7 +12,7 @@ import 'utils.dart';
// The scope markers are inserted when entering object elements,
// marquees, table cells, and table captions, and are used to prevent formatting
// from "leaking" into tables, object elements, and marquees.
-final Node Marker = null;
+const Node Marker = null;
// TODO(jmesserly): this should extend ListBase<Node>, but my simple attempt
// didn't work.
@@ -130,7 +130,8 @@ class TreeBuilder {
const Pair(Namespaces.html, "option")];
invert = true;
break;
- default: assert(false); break;
+ default:
+ throw new StateError('We should never reach this point');
}
}
@@ -145,7 +146,7 @@ class TreeBuilder {
}
}
- assert(false); // We should never reach this point
+ throw new StateError('We should never reach this point');
}
void reconstructActiveFormattingElements() {
« no previous file with comments | « pkg/third_party/html5lib/lib/src/tokenizer.dart ('k') | pkg/third_party/html5lib/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698