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
1a79592b
Unverified
Commit
1a79592b
authored
Feb 26, 2020
by
Ferhat
Committed by
GitHub
Feb 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce closure allocation in RenderObject.cleanRelayoutBoundary (#51439)
parent
2132a0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
object.dart
packages/flutter/lib/src/rendering/object.dart
+7
-6
No files found.
packages/flutter/lib/src/rendering/object.dart
View file @
1a79592b
...
...
@@ -1584,12 +1584,15 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
if
(
_relayoutBoundary
!=
this
)
{
_relayoutBoundary
=
null
;
_needsLayout
=
true
;
visitChildren
((
RenderObject
child
)
{
child
.
_cleanRelayoutBoundary
();
});
visitChildren
(
_cleanChildRelayoutBoundary
);
}
}
// Reduces closure allocation for visitChildren use cases.
static
void
_cleanChildRelayoutBoundary
(
RenderObject
child
)
{
child
.
_cleanRelayoutBoundary
();
}
/// Bootstrap the rendering pipeline by scheduling the very first layout.
///
/// Requires this render object to be attached and that this render object
...
...
@@ -1724,9 +1727,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
// The local relayout boundary has changed, must notify children in case
// they also need updating. Otherwise, they will be confused about what
// their actual relayout boundary is later.
visitChildren
((
RenderObject
child
)
{
child
.
_cleanRelayoutBoundary
();
});
visitChildren
(
_cleanChildRelayoutBoundary
);
}
_relayoutBoundary
=
relayoutBoundary
;
assert
(!
_debugMutationsLocked
);
...
...
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