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

Unified Diff: client/touch/InfiniteScroller.dart

Issue 8360025: Move the individual property definitions from client/base/Css to CSSStyleDeclaration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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: client/touch/InfiniteScroller.dart
diff --git a/client/touch/InfiniteScroller.dart b/client/touch/InfiniteScroller.dart
index 3f7bc484546bf565e10d8870725861152ea49045..e06483df0da6aa5b5b2b01da1fbcd520d2889c40 100644
--- a/client/touch/InfiniteScroller.dart
+++ b/client/touch/InfiniteScroller.dart
@@ -136,10 +136,10 @@ class InfiniteScroller {
void _updateVisibility(bool isLoading, Element element,
Element loadingElement) {
if (element != null) {
- Css.setDisplay(element.style, isLoading ? "none" : "");
+ element.style.display = isLoading ? "none" : "";
}
if (loadingElement != null) {
- Css.setDisplay(loadingElement.style, isLoading ? "" : "none");
+ loadingElement.style.display = isLoading ? "" : "none";
}
}
}

Powered by Google App Engine
This is Rietveld 408576698