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

Commit c27eb736 authored by Chris Craik's avatar Chris Craik Committed by android-build-merger
Browse files

Merge "Reject RenderNodes contents when clip is empty" into nyc-dev

am: a98222ae

* commit 'a98222ae':
  Reject RenderNodes contents when clip is empty
parents ef29bce1 a98222ae
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()) {