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

Unified Diff: client/view/view.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/SliderMenu.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/view/view.dart
diff --git a/client/view/view.dart b/client/view/view.dart
index eba6b730a42b0f584ee2505b140efc86f800a381..7a0070392f6551d979bb4504119c7b6ee235a5f2 100644
--- a/client/view/view.dart
+++ b/client/view/view.dart
@@ -203,16 +203,16 @@ class View implements Positionable {
/**
* Gets whether the view is hidden.
*/
- bool get hidden() => Css.getDisplay(_node.style) == 'none';
+ bool get hidden() => _node.style.display == 'none';
/**
* Sets whether the view is hidden.
*/
void set hidden(bool hidden) {
if (hidden) {
- Css.setDisplay(node.style, 'none');
+ node.style.display = 'none';
} else {
- Css.setDisplay(node.style, '');
+ node.style.display = '';
}
}
@@ -226,7 +226,7 @@ class View implements Positionable {
/** Sets the CSS3 transform applied to the view. */
set transform(String transform) {
- Css.setTransform(node.style, transform);
+ node.style.transform = transform;
}
// TODO(rnystrom): Get rid of this, or move into a separate class?
« no previous file with comments | « client/view/SliderMenu.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698