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

Unified Diff: sky/sdk/lib/widgets/widget.dart

Issue 1178323004: Break some lines to make debugging easier. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/sdk/lib/widgets/widget.dart
diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart
index 4f8bd02b6253a53837d79da714d13f8a35d0e83d..f4965ef7fecf09954d7edfe2275678506f4eb2ed 100644
--- a/sky/sdk/lib/widgets/widget.dart
+++ b/sky/sdk/lib/widgets/widget.dart
@@ -124,7 +124,10 @@ abstract class Widget {
return null;
}
- if (oldNode != null && oldNode.runtimeType == node.runtimeType && node.key == oldNode.key && node._retainStatefulNodeIfPossible(oldNode)) {
+ if (oldNode != null &&
+ oldNode.runtimeType == node.runtimeType &&
+ oldNode.key == node.key &&
+ node._retainStatefulNodeIfPossible(oldNode)) {
assert(oldNode.mounted);
assert(!node.mounted);
oldNode._sync(node, slot);
@@ -132,7 +135,8 @@ abstract class Widget {
return oldNode;
}
- if (oldNode != null && (oldNode.runtimeType != node.runtimeType || node.key != oldNode.key)) {
+ if (oldNode != null &&
+ (oldNode.runtimeType != node.runtimeType || oldNode.key != node.key)) {
assert(oldNode.mounted);
removeChild(oldNode);
oldNode = null;
« 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