Mark all descendants of Defs as seen after a draw

When adding clipping paths in a def and changing properties of that clipping path (or its descendants), redraw is triggered only once as updates are never marked as seen.
This change makes sure to call `markUpdateSeen` on all descendants of the Defs node on a `draw`.
This commit is contained in:
Albert Brand
2016-11-22 11:58:29 +01:00
committed by GitHub
parent 90db825206
commit d4cc619a9f
@@ -25,5 +25,12 @@ public class RNSVGDefsShadowNode extends RNSVGDefinitionShadowNode {
return true;
}
});
traverseChildren(new NodeRunnable() {
public boolean run(RNSVGVirtualNode node) {
node.markUpdateSeen();
node.traverseChildren(this);
return true;
}
});
}
}