From 5e3d8cf2d3dfa844cfb7fbef5be1d15e6c6d9132 Mon Sep 17 00:00:00 2001 From: krisgiesing Date: Tue, 5 Apr 2016 09:52:26 -0700 Subject: [PATCH] Merge pull request #3106 from krisgiesing/remove_getters Remove public accessor for paint dirty state --- packages/flutter/lib/src/rendering/object.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart index 439a7ac3f1..8658f0f249 100644 --- a/packages/flutter/lib/src/rendering/object.dart +++ b/packages/flutter/lib/src/rendering/object.dart @@ -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. ///