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

Unified Diff: pkg/third_party/html5lib/lib/dom.dart

Issue 315173005: Add "last" setter to List. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
Index: pkg/third_party/html5lib/lib/dom.dart
diff --git a/pkg/third_party/html5lib/lib/dom.dart b/pkg/third_party/html5lib/lib/dom.dart
index a87bca96e9eda2f85465dffb42a220c4a9f18e2e..95652dd0165667bef703ee178694a2a9d4c876f5 100644
--- a/pkg/third_party/html5lib/lib/dom.dart
+++ b/pkg/third_party/html5lib/lib/dom.dart
@@ -852,6 +852,10 @@ class FilteredElementList extends IterableBase<Element> with ListMixin<Element>
this[index].replaceWith(value);
}
+ void set last(Element value) {
+ this.last.replaceWith(value);
+ }
+
void set length(int newLength) {
final len = this.length;
if (newLength >= len) {

Powered by Google App Engine
This is Rietveld 408576698