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

Unified Diff: sky/framework/fn.dart

Issue 1041863003: Effen error if a component ancestor doesn't specify a style (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 | no next file » | no next file with comments »
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 52d0097d891d588710ad3394bdf0a15a07c5c5c4..9b2fbda59513a9dea974900eef7fc1e71f93374a 100644
--- a/sky/framework/fn.dart
+++ b/sky/framework/fn.dart
@@ -439,7 +439,7 @@ abstract class Element extends RenderNode {
Node parent = _parent;
while (parent != null && parent is! RenderNode) {
- if (parent is StyleNode)
+ if (parent is StyleNode && (parent as StyleNode).style != null)
ojan 2015/03/30 20:44:11 You have two spaces after StyleNode.
styles.add((parent as StyleNode).style);
parent = parent._parent;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698