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

Unified Diff: client/samples/swarm/SwarmViews.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/layout/ViewLayout.dart ('k') | client/samples/swarm/Views.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/swarm/SwarmViews.dart
diff --git a/client/samples/swarm/SwarmViews.dart b/client/samples/swarm/SwarmViews.dart
index 1ca58a790e141264932ac8c521177889e4d8e9f7..e8befeb54fde8a5bbea03f43847cd7376fadcdc5 100644
--- a/client/samples/swarm/SwarmViews.dart
+++ b/client/samples/swarm/SwarmViews.dart
@@ -909,7 +909,7 @@ class SectionView extends CompositeView {
* Hides the loading text, reloads the data sources, and shows them.
*/
void showSources() {
- Css.setDisplay(loadingText.node.style, 'none');
+ loadingText.node.style.display = 'none';
// Lazy initialize the data source view.
if (dataSourceView == null) {
@@ -929,11 +929,11 @@ class SectionView extends CompositeView {
pageNumberView = addChild(new PageNumberView(pageState));
- Css.setOpacity(node.style, '1');
+ node.style.opacity = '1';
} else {
addChild(dataSourceView);
addChild(pageNumberView);
- Css.setOpacity(node.style, '1');
+ node.style.opacity = '1';
}
// TODO(jacobr): get rid of this call to reconfigure when it is not needed.
@@ -945,12 +945,12 @@ class SectionView extends CompositeView {
*/
void hideSources() {
if (dataSourceView != null) {
- Css.setOpacity(node.style, '0.6');
+ node.style.opacity = '0.6';
removeChild(dataSourceView);
removeChild(pageNumberView);
}
- Css.setDisplay(loadingText.node.style, 'block');
+ loadingText.node.style.display = 'block';
}
set storyMode(bool inStoryMode) {
« no previous file with comments | « client/layout/ViewLayout.dart ('k') | client/samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698