/**
 * Copyright (c) 2015-present, Horcrux.
 * All rights reserved.
 *
 * This source code is licensed under the MIT-style license found in the
 * LICENSE file in the root directory of this source tree.
 */


package com.horcrux.svg;

import android.graphics.Canvas;
import android.graphics.Paint;

/**
 * Shadow node for virtual RNSVGPath view
 */
public class RNSVGDefsShadowNode extends RNSVGDefinitionShadowNode {

    @Override
    public void draw(Canvas canvas, Paint paint, float opacity) {
        traverseChildren(new NodeRunnable() {
            public boolean run(RNSVGVirtualNode node) {
                node.saveDefinition();
                return true;
            }
        });
    }
}

@@ -688,16 +688,257 @@
     %7D);%0A
+        traverseChildren(new NodeRunnable() %7B%0A            public boolean run(RNSVGVirtualNode node) %7B%0A                node.markUpdateSeen();%0A                node.traverseChildren(this);%0A                return true;%0A            %7D%0A        %7D);%0A
     %7D%0A%7D%0A

Mark all descendants of Defs as seen after a draw