Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15176166d70f4095b6c4d7b8d97e25f7810d6753
      
https://github.com/WebKit/WebKit/commit/15176166d70f4095b6c4d7b8d97e25f7810d6753
  Author: Megan Gardner <[email protected]>
  Date:   2026-01-29 (Thu, 29 Jan 2026)

  Changed paths:
    A LayoutTests/fast/repaint/highlight-removed-when-deleted-expected.txt
    A LayoutTests/fast/repaint/highlight-removed-when-deleted.html
    A 
LayoutTests/platform/glib/fast/repaint/highlight-removed-when-deleted-expected.txt
    M Source/WebCore/Modules/highlight/HighlightRegistry.cpp

  Log Message:
  -----------
  Deleting highlight from registry does not clear highlight ranges.
https://bugs.webkit.org/show_bug.cgi?id=306396
rdar://168765380

Reviewed by Aditya Keerthi.

When deleting a highlight from the registry, we did not repaint
the ranges of that highlight, which resulted in the page
looking like the highlights were still present. We simply need
to repaint the ranges when we delete the highlight.

Test: fast/repaint/highlight-removed-when-deleted.html

* LayoutTests/fast/repaint/highlight-removed-when-deleted-expected.txt: Added.
* LayoutTests/fast/repaint/highlight-removed-when-deleted.html: Added.
* 
LayoutTests/platform/glib/fast/repaint/highlight-removed-when-deleted-expected.txt:
 Added.
* Source/WebCore/Modules/highlight/HighlightRegistry.cpp:
(WebCore::HighlightRegistry::remove):

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



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

Reply via email to