Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix for pixel-moving CSS filters with clipping
Fix for pixel-moving CSS filters with clipping https://bugs.webkit.org/show_bug.cgi?id=247961 Reviewed by Simon Fraser. Merge - https://src.chromium.org/viewvc/blink?view=revision&revision=180361 When using a "pixel-moving" filter (ie., drop-shadow or blur), we disable the normal clip operation, since we want to want to render the full results of the element pre-clip for filtering. Clipping is then applied just before drawing the filtered result. However, we shouldn't disable *all* clipping recursively, since we want children which clip themselves to still continue to be clipped. The fix is to pass the original (unmodified) paintingInfo to paintChildren(). NOTE - The test case has been slightly modified to apply blur to reflect the issue. * Source/WebCore/rendering/RenderLayer.cpp: (RenderLayer::paintLayerContents): Update to take "original" paintingInfo * LayoutTests/css3/filters/effect-drop-shadow-clip-abpos.html: Added Test Case * LayoutTests/css3/filters/effect-drop-shadow-clip-abpos-expected.html: Added Test Case Expectations Canonical link: https://commits.webkit.org/256825@main
- Loading branch information