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

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

Issue 12493014: Fix CssClassSet methods to accept Set, not Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/CssClassSet.dart
diff --git a/tools/dom/src/CssClassSet.dart b/tools/dom/src/CssClassSet.dart
index 8d04493d596e0edb233c886290893911d2f27e45..dbc8afc30a5bfcc87a7bb42a0a2ce09e586740f9 100644
--- a/tools/dom/src/CssClassSet.dart
+++ b/tools/dom/src/CssClassSet.dart
@@ -108,13 +108,13 @@ abstract class CssClassSet implements Set<String> {
bool containsAll(Iterable<String> collection) =>
readClasses().containsAll(collection);
- Set<String> intersection(Collection<String> other) =>
+ Set<String> intersection(Set<String> other) =>
readClasses().intersection(other);
- Set<String> union(Collection<String> other) =>
+ Set<String> union(Set<String> other) =>
readClasses().union(other);
- Set<String> difference(Collection<String> other) =>
+ Set<String> difference(Set<String> other) =>
readClasses().difference(other);
String get first => readClasses().first;
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698