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

Unified Diff: client/view/PagedViews.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/view/ConveyorView.dart ('k') | client/view/SliderMenu.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/view/PagedViews.dart
diff --git a/client/view/PagedViews.dart b/client/view/PagedViews.dart
index 1a0c7c42feac3c5a7630dccf250bf1215f8f17f7..7c48a3291be826d85e8e440dc8370157199f8e3b 100644
--- a/client/view/PagedViews.dart
+++ b/client/view/PagedViews.dart
@@ -151,12 +151,12 @@ class PagedColumnView extends View {
/** Read the column-gap setting so we know how far to translate the child. */
void _computeColumnGap() {
final style = window.getComputedStyle(contentView.node, '');
- String gap = Css.getColumnGap(style);
+ String gap = style.columnGap;
if (gap == 'normal') {
- gap = Css.getFontSize(style);
+ gap = style.fontSize;
}
_columnGap = _toPixels(gap, 'column-gap or font-size');
- _columnWidth = _toPixels(Css.getColumnWidth(style), 'column-width');
+ _columnWidth = _toPixels(style.columnWidth, 'column-width');
}
static int _toPixels(String value, String message) {
@@ -175,7 +175,7 @@ class PagedColumnView extends View {
// The content needs to have its height explicitly set, or columns don't
// flow to the right correctly. So we copy our own height and set the height
// of the content.
- Css.setHeight(contentView.node.style, '${node.offsetHeight}px');
+ contentView.node.style.height = '${node.offsetHeight}px';
_updatePageCount();
scroller.reconfigure();
« no previous file with comments | « client/view/ConveyorView.dart ('k') | client/view/SliderMenu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698