Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8913c894 authored by Chris Craik's avatar Chris Craik
Browse files

Reject RenderNodes contents when clip is empty

bug:22630332

Change-Id: I326123de3154f655e35d649c242daea3b4f0fda0
parent 8316fac9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -203,8 +203,9 @@ void FrameBuilder::deferNodePropsAndOps(RenderNode& node) {
        mCanvasState.setClippingOutline(mAllocator, &(properties.getOutline()));
    }

    bool quickRejected = properties.getClipToBounds()
            && mCanvasState.quickRejectConservative(0, 0, width, height);
    bool quickRejected = mCanvasState.currentSnapshot()->getRenderTargetClip().isEmpty()
            || (properties.getClipToBounds()
                    && mCanvasState.quickRejectConservative(0, 0, width, height));
    if (!quickRejected) {
        // not rejected, so defer render as either Layer, or direct (possibly wrapped in saveLayer)
        if (node.getLayer()) {