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

Unified Diff: tools/dom/src/AttributeMap.dart

Issue 103933005: Fix bug 15417 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_Storage.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/AttributeMap.dart
diff --git a/tools/dom/src/AttributeMap.dart b/tools/dom/src/AttributeMap.dart
index b74110b2e3393bd192243d350653d458cf1e5dc8..c212a23a840fc1c03e12c16e5a1764ad0c894955 100644
--- a/tools/dom/src/AttributeMap.dart
+++ b/tools/dom/src/AttributeMap.dart
@@ -9,6 +9,10 @@ abstract class _AttributeMap implements Map<String, String> {
_AttributeMap(this._element);
+ void addAll(Map<String, String> other) {
+ other.forEach((k, v) { this[k] = v; });
+ }
+
bool containsValue(String value) {
for (var v in this.values) {
if (value == v) {
@@ -165,6 +169,10 @@ class _DataAttributeMap implements Map<String, String> {
// interface Map
+ void addAll(Map<String, String> other) {
+ other.forEach((k, v) { this[k] = v; });
+ }
+
// TODO: Use lazy iterator when it is available on Map.
bool containsValue(String value) => values.any((v) => v == value);
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_Storage.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698