Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f1d39ab9d6ce9378a6199cedac6be906e53cafd0
      
https://github.com/WebKit/WebKit/commit/f1d39ab9d6ce9378a6199cedac6be906e53cafd0
  Author: Vitaly Dyachkov <[email protected]>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    A LayoutTests/fast/repaint/drop-shadow-change-full-repaint-expected.txt
    A LayoutTests/fast/repaint/drop-shadow-change-full-repaint.html
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderBox.h
    M Source/WebCore/rendering/RenderElement.cpp
    M Source/WebCore/rendering/RenderElement.h

  Log Message:
  -----------
  Elements with `filter: drop-shadow()` are not fully repainted on child resize
https://bugs.webkit.org/show_bug.cgi?id=318337

Reviewed by Simon Fraser.

After a layout caused by one of its children's size change, an element
with a `drop-shadow()` filter can be not fully repainted, leaving a
ghost of the shadow.

Fix the issue by ensuring that the element is fully repainted after
layout on size change if it has a filter with outsets applied.

Test: fast/repaint/drop-shadow-change-full-repaint.html

* LayoutTests/fast/repaint/drop-shadow-change-full-repaint-expected.txt: Added.
* LayoutTests/fast/repaint/drop-shadow-change-full-repaint.html: Added.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeFilterOutsets const): Deleted.
* Source/WebCore/rendering/RenderBox.h:
* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::computeFilterOutsets const):
(WebCore::RenderElement::repaintAfterLayoutIfNeeded):
* Source/WebCore/rendering/RenderElement.h:

Canonical link: https://commits.webkit.org/316450@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to