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
5e3d8cf2
Commit
5e3d8cf2
authored
Apr 05, 2016
by
krisgiesing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #3106 from krisgiesing/remove_getters
Remove public accessor for paint dirty state
parent
3665866f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
object.dart
packages/flutter/lib/src/rendering/object.dart
+2
-4
No files found.
packages/flutter/lib/src/rendering/object.dart
View file @
5e3d8cf2
...
...
@@ -65,7 +65,7 @@ class PaintingContext {
/// the subtree that don't need to be repainted.
static
void
repaintCompositedChild
(
RenderObject
child
,
{
bool
debugAlsoPaintedParent:
false
})
{
assert
(
child
.
isRepaintBoundary
);
assert
(
child
.
needsPaint
);
assert
(
child
.
_
needsPaint
);
assert
(()
{
child
.
debugRegisterRepaintBoundaryPaint
(
includedParent:
debugAlsoPaintedParent
,
includedChild:
true
);
return
true
;
...
...
@@ -101,7 +101,7 @@ class PaintingContext {
assert
(
_canvas
==
null
||
_canvas
.
getSaveCount
()
==
1
);
// Create a layer for our child, and paint the child into it.
if
(
child
.
needsPaint
)
{
if
(
child
.
_
needsPaint
)
{
repaintCompositedChild
(
child
,
debugAlsoPaintedParent:
true
);
}
else
{
assert
(
child
.
_layer
!=
null
);
...
...
@@ -1383,8 +1383,6 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
}
bool
_needsPaint
=
true
;
/// The visual appearance of this render object has changed since it last painted.
bool
get
needsPaint
=>
_needsPaint
;
/// Mark this render object as having changed its visual appearance.
///
...
...
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