Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5bad6ec5e96a797f39e9882a37da42980001cc6a
      
https://github.com/WebKit/WebKit/commit/5bad6ec5e96a797f39e9882a37da42980001cc6a
  Author: Antti Koivisto <[email protected]>
  Date:   2026-05-22 (Fri, 22 May 2026)

  Changed paths:
    M Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
    M Source/WebCore/style/PseudoElementIdentifier.h
    M Source/WebCore/style/StyleTreeResolver.cpp

  Log Message:
  -----------
  Remove pseudoStyleCacheIsInvalid check from RenderTreeUpdater
https://bugs.webkit.org/show_bug.cgi?id=293608
rdar://152073637

Reviewed by Alan Baradlay.

These checks are only needed for highlight pseudos (like ::selection) that are 
resolved
on-demand. Instead we can resolve them eagerly in tree resolver like all other
pseudo-elements in case they are already present. This retains lazy resolution 
in the common
case where they are not needed while simplifying the logic.

* Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::updateElementRenderer):
(WebCore::pseudoStyleCacheIsInvalid): Deleted.
* Source/WebCore/style/PseudoElementIdentifier.h:
(WebCore::Style::isHighlightPseudoElement):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveElement):

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



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

Reply via email to