Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c411b9898504c2c99d86aae7d5d19aa0f67aa99d
      
https://github.com/WebKit/WebKit/commit/c411b9898504c2c99d86aae7d5d19aa0f67aa99d
  Author: Megan Gardner <[email protected]>
  Date:   2026-02-19 (Thu, 19 Feb 2026)

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

  Log Message:
  -----------
  CSSHighlights not repainted when they are re-added to the registry.
https://bugs.webkit.org/show_bug.cgi?id=307491
rdar://170099603

Reviewed by Aditya Keerthi.

When adding an existing highlight to the registry, we don't ensure that
the associated ranges are repainted. We just need to ensure that when we
add a new Highlight we repaint the ranges. We should also not repaint ranges
when the highlight is created, only when the highlight is added to the registry.

Test: fast/repaint/highlight-repainted-when-deleted-and-readded.html

* 
LayoutTests/fast/repaint/highlight-repainted-when-deleted-and-readded-expected.txt:
 Added.
* LayoutTests/fast/repaint/highlight-repainted-when-deleted-and-readded.html: 
Added.
* 
LayoutTests/platform/glib/fast/repaint/highlight-repainted-when-deleted-and-readded-expected.txt:
 Added.
* 
LayoutTests/platform/wpe/fast/repaint/highlight-repainted-when-deleted-and-readded-expected.txt:
 Added.
* Source/WebCore/Modules/highlight/Highlight.cpp:
(WebCore::Highlight::Highlight):
* Source/WebCore/Modules/highlight/HighlightRegistry.cpp:
(WebCore::HighlightRegistry::setFromMapLike):

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



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

Reply via email to