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

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

Issue 2827793002: Format all files under tools and utils directory. (Closed)
Patch Set: Format all files under tools and utils directory. Created 3 years, 8 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 | « tools/dom/src/dart2js_WrappedEvent.dart ('k') | tools/dom/src/dartium_CustomElementSupport.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/dartium_CssClassSet.dart
diff --git a/tools/dom/src/dartium_CssClassSet.dart b/tools/dom/src/dartium_CssClassSet.dart
index cba90253baa025a4d759f2267a472d938d7c217d..868cc57cfc2e4ab18e065c1d62ea56d8ac64a759 100644
--- a/tools/dom/src/dartium_CssClassSet.dart
+++ b/tools/dom/src/dartium_CssClassSet.dart
@@ -13,14 +13,14 @@ class _MultiElementCssClassSet extends CssClassSetImpl {
Iterable<_ElementCssClassSet> _elementCssClassSetIterable;
_MultiElementCssClassSet(this._elementIterable) {
- _elementCssClassSetIterable = new List.from(_elementIterable).map(
- (e) => new _ElementCssClassSet(e));
+ _elementCssClassSetIterable =
+ new List.from(_elementIterable).map((e) => new _ElementCssClassSet(e));
}
Set<String> readClasses() {
var s = new LinkedHashSet<String>();
- _elementCssClassSetIterable.forEach(
- (_ElementCssClassSet e) => s.addAll(e.readClasses()));
+ _elementCssClassSetIterable
+ .forEach((_ElementCssClassSet e) => s.addAll(e.readClasses()));
return s;
}
@@ -40,7 +40,7 @@ class _MultiElementCssClassSet extends CssClassSetImpl {
* After f returns, the modified set is written to the
* className property of this element.
*/
- modify( f(Set<String> s)) {
+ modify(f(Set<String> s)) {
_elementCssClassSetIterable.forEach((_ElementCssClassSet e) => e.modify(f));
}
@@ -49,7 +49,8 @@ class _MultiElementCssClassSet extends CssClassSetImpl {
* is.
*/
bool toggle(String value, [bool shouldAdd]) =>
- _elementCssClassSetIterable.fold(false,
+ _elementCssClassSetIterable.fold(
+ false,
(bool changed, _ElementCssClassSet e) =>
e.toggle(value, shouldAdd) || changed);
@@ -65,7 +66,6 @@ class _MultiElementCssClassSet extends CssClassSetImpl {
}
class _ElementCssClassSet extends CssClassSetImpl {
-
final Element _element;
_ElementCssClassSet(this._element);
« no previous file with comments | « tools/dom/src/dart2js_WrappedEvent.dart ('k') | tools/dom/src/dartium_CustomElementSupport.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698