File tree 1 file changed +7
-4
lines changed
packages/flutter/lib/src/rendering
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2627,10 +2627,13 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
2627
2627
}
2628
2628
return true ;
2629
2629
}());
2630
- // If we're the root of the render tree (probably a RenderView),
2631
- // then we have to paint ourselves, since nobody else can paint
2632
- // us. We don't add ourselves to _nodesNeedingPaint in this
2633
- // case, because the root is always told to paint regardless.
2630
+ // If we are the root of the render tree and not a repaint boundary
2631
+ // then we have to paint ourselves, since nobody else can paint us.
2632
+ // We don't add ourselves to _nodesNeedingPaint in this case,
2633
+ // because the root is always told to paint regardless.
2634
+ //
2635
+ // Trees rooted at a RenderView do not go through this
2636
+ // code path because RenderViews are repaint boundaries.
2634
2637
if (owner != null ) {
2635
2638
owner! .requestVisualUpdate ();
2636
2639
}
You can’t perform that action at this time.
0 commit comments