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

Unified Diff: sky/framework/fn.dart

Issue 1038583003: [Effen] Add a basic layout test (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | sky/tests/framework/basic.dart » ('j') | sky/tests/framework/basic.sky » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fn.dart
diff --git a/sky/framework/fn.dart b/sky/framework/fn.dart
index e669d7e92e724aeb1a1b26ef16dd26c0171d9015..52d0097d891d588710ad3394bdf0a15a07c5c5c4 100644
--- a/sky/framework/fn.dart
+++ b/sky/framework/fn.dart
@@ -454,7 +454,7 @@ abstract class Element extends RenderNode {
sky.Element root = _root as sky.Element;
_ensureClass();
- if (_class != oldElement._class)
+ if (_class != oldElement._class && _class != '')
root.setAttribute('class', _class);
if (inlineStyle != oldElement.inlineStyle)
« no previous file with comments | « no previous file | sky/tests/framework/basic.dart » ('j') | sky/tests/framework/basic.sky » ('J')

Powered by Google App Engine
This is Rietveld 408576698