Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BackgroundPainter::paintFillLayers
should check box-shadow when fin…
…ding an opaque layer https://bugs.webkit.org/show_bug.cgi?id=250882 rdar://problem/104722307 Reviewed by Antti Koivisto. This patch aligns WebKit with Gecko / Firefox and Blink / Chromium. Merge: https://chromium.googlesource.com/chromium/blink/+/a48f4540763c24adff42b9b77d719597f51482f6 BackgroundPainter::paintFillLayers has a fast path when a layer has an opaque background image. If a layer has an opaque background image, basically the layer's background layers will be hidden by the background image. So we can skip rendering the background layers. However, if box-shadow is also specified, the box-shadow will be rendered in a skipped background layer. This causes "box-shadow disappears". We cannot use the fast path if box-shadow is specified. * Source/WebCore/rendering/BackgroundPainter.cpp: (BackgroundPainter::paintFillLayers): * LayoutTests/fast/box-shadow/normal-box-shadow-with-background-image.html: Add Test Case * LayoutTests/fast/box-shadow/normal-box-shadow-with-background-image-expected-mismatch.html: Add Test Case Expectation Mismatch Canonical link: https://commits.webkit.org/275735@main
- Loading branch information