提交 73d9f883 编写于 作者: H Hixie

Break some lines to make debugging easier.

TBR=abarth,jackson

Review URL: https://codereview.chromium.org/1178323004.
上级 1d905916
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册