Commit 5e3d8cf2 authored by krisgiesing's avatar krisgiesing

Merge pull request #3106 from krisgiesing/remove_getters

Remove public accessor for paint dirty state
parent 3665866f
......@@ -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.
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment