Isolation: Remove isolation if we have non-svg replaced content.
This patch ensures that we don't put isolation nodes in place if we have replaced content transform in an non-svg. The reason for this is twofold: 1. Typically, isolation wouldn't buy us anything, since we're likely looking at an image, which has no subtree to isolate. 2. When we get the chain of transforms, we need to decide whether we're returning a replaced content or an isolation transform since they are both leafs of a chain, but not a part of the same chain. Currently we return the isolation node first. We could fix this by returning the replaced content first, but then we specifically bypass transform isolation which may cause other bugs down the line. R=pdr@chromium.org Bug: 937571 Change-Id: I39f51a2e7810f058bfdf49c28c8f2e3857565ebe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506572Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#638271}
Showing
Please register or sign in to comment