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
5231a7dc
Unverified
Commit
5231a7dc
authored
Mar 29, 2021
by
Michael Goderbauer
Committed by
GitHub
Mar 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline some element methods for better stack overflow affinity (#78269)
parent
c4ba26e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+3
-0
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
5231a7dc
...
...
@@ -3310,6 +3310,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
///
/// See the [RenderObjectElement] documentation for more information on slots.
@protected
@pragma
(
'vm:prefer-inline'
)
Element
?
updateChild
(
Element
?
child
,
Widget
?
newWidget
,
Object
?
newSlot
)
{
if
(
newWidget
==
null
)
{
if
(
child
!=
null
)
...
...
@@ -3583,6 +3584,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
/// The element returned by this function will already have been mounted and
/// will be in the "active" lifecycle state.
@protected
@pragma
(
'vm:prefer-inline'
)
Element
inflateWidget
(
Widget
newWidget
,
Object
?
newSlot
)
{
assert
(
newWidget
!=
null
);
final
Key
?
key
=
newWidget
.
key
;
...
...
@@ -4236,6 +4238,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
/// Called by the [BuildOwner] when [BuildOwner.scheduleBuildFor] has been
/// called to mark this element dirty, by [mount] when the element is first
/// built, and by [update] when the widget has changed.
@pragma
(
'vm:prefer-inline'
)
void
rebuild
()
{
assert
(
_lifecycleState
!=
_ElementLifecycle
.
initial
);
if
(
_lifecycleState
!=
_ElementLifecycle
.
active
||
!
_dirty
)
...
...
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