Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a245e4f6cc133a117836dbdb56d087d900927dad
https://github.com/WebKit/WebKit/commit/a245e4f6cc133a117836dbdb56d087d900927dad
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-04-21 (Tue, 21 Apr 2026)
Changed paths:
M Source/WebCore/rendering/RenderElement.cpp
Log Message:
-----------
[LBSE] Suppress LayoutRepainter inside SVG hidden/anonymous containers
https://bugs.webkit.org/show_bug.cgi?id=312820
Reviewed by Simon Fraser.
Extend `RenderElement::checkForRepaintDuringLayout()` to return `false`
when LBSE is enabled and the element either is an anonymous SVG
container (e.g. the viewport container child of `RenderSVGRoot`) or is
nested inside a `RenderSVGHiddenContainer`. Hidden resource subtrees
(<defs>, <clipPath>, <mask>, <pattern>) are never painted directly, so
the `LayoutRepainter` overhead for their descendants is wasted work, and
anonymous SVG containers' children own layers that drive their own
repaints.
Will only affect LBSE baselines after conditional-layer-creation is on.
* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::checkForRepaintDuringLayout const):
Canonical link: https://commits.webkit.org/311726@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications