Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 72ec2a274bb316c8aa64fbac9b8c9bb51ebf099c https://github.com/WebKit/WebKit/commit/72ec2a274bb316c8aa64fbac9b8c9bb51ebf099c Author: Wenson Hsieh <wenson_hs...@apple.com> Date: 2025-03-21 (Fri, 21 Mar 2025)
Changed paths: A LayoutTests/fast/page-color-sampling/page-color-sampling-skips-border-top-expected.txt A LayoutTests/fast/page-color-sampling/page-color-sampling-skips-border-top.html M Source/WebCore/page/LocalFrameView.cpp Log Message: ----------- [Page color sampling] Improve color sampling stability for fixed containers with visible borders https://bugs.webkit.org/show_bug.cgi?id=290148 rdar://147362111 Reviewed by Abrar Rahman Protyasha. Adjust the edge color sampling heuristic to recognize when a fixed-position container near the top, left, right, or bottom edge has a (thin) visible border facing that edge. Instead of sampling colors along the border, we push the sampling rect inwards by the border width to capture any predominant solid colors in the interior of the fixed container. * LayoutTests/fast/page-color-sampling/page-color-sampling-skips-border-top-expected.txt: Added. * LayoutTests/fast/page-color-sampling/page-color-sampling-skips-border-top.html: Added. Add a layout test to verify that color sampling "skips" over the solid orange `border-top`, and returns solid white while scrolling through the page. * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::fixedContainerEdges const): Canonical link: https://commits.webkit.org/292472@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes