Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
832da040
Commit
832da040
authored
Sep 08, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1083 from Hixie/card-bug
Avoid infinite loop in syncChildren().
parents
05c9ca91
b9888c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+9
-4
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
832da040
...
...
@@ -563,8 +563,7 @@ abstract class TagNode extends Widget {
void
_sync
(
Widget
old
,
dynamic
slot
)
{
assert
(!
_debugChildTaken
);
Widget
oldChild
=
(
old
as
TagNode
)?.
child
;
child
=
syncChild
(
child
,
oldChild
,
slot
);
child
=
syncChild
(
child
,
(
old
as
TagNode
)?.
child
,
slot
);
if
(
child
!=
null
)
{
assert
(
child
.
parent
==
this
);
assert
(
child
.
renderObject
!=
null
);
...
...
@@ -945,6 +944,12 @@ abstract class StatefulComponent extends Component {
fn
();
_scheduleBuild
();
}
String
toStringName
([
String
prefix
=
''
,
String
startPrefix
=
''
])
{
if
(
_disqualifiedFromEverAppearingAgain
)
return
'[[DISQUALIFIED]]
${super.toStringName()}
'
;
return
super
.
toStringName
();
}
}
Set
<
Component
>
_dirtyComponents
=
new
Set
<
Component
>();
...
...
@@ -1228,8 +1233,8 @@ abstract class RenderObjectWrapper extends Widget {
}
else
{
syncChild
(
null
,
oldChild
,
null
);
}
oldChildrenBottom
-=
1
;
}
}
// else the node was probably moved elsewhere, ignore it
oldChildrenBottom
-=
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment