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

Unified Diff: client/samples/swarm/Views.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: Code review changes. 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
« no previous file with comments | « client/samples/swarm/SwarmViews.dart ('k') | client/tests/client/html/CSSStyleDeclarationTests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/swarm/Views.dart
diff --git a/client/samples/swarm/Views.dart b/client/samples/swarm/Views.dart
index 35018d6e6a15625acd0f460c1a8aacdd965141d5..2efd0737e0cf8121fcfda884c07f70999bafa04c 100644
--- a/client/samples/swarm/Views.dart
+++ b/client/samples/swarm/Views.dart
@@ -274,14 +274,14 @@ class GenericListView<D> extends View {
int width = _layout.getWidth(_viewLength);
int height = _layout.getHeight(_viewLength);
if (width != null) {
- Css.setWidth(style, '${width}px');
+ style.width = '${width}px';
}
if (height != null) {
- Css.setHeight(style, '${height}px');
+ style.height = '${height}px';
}
// TODO(jacobr): this should be specified by the default CSS for a
// GenericListView.
- Css.setOverflow(style, 'hidden');
+ style.overflow = 'hidden';
}
@@ -560,7 +560,7 @@ class GenericListView<D> extends View {
} else {
FxUtil.setTranslate(node, _layout.getOffset(index), 0, 0);
}
- Css.setZIndex(node.style, index.toString());
+ node.style.zIndex = index.toString();
}
void _select(int index, bool selected) {
« no previous file with comments | « client/samples/swarm/SwarmViews.dart ('k') | client/tests/client/html/CSSStyleDeclarationTests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698