Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 320ef0cb7251585b522489eb1302c331bab790de
      
https://github.com/WebKit/WebKit/commit/320ef0cb7251585b522489eb1302c331bab790de
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/rendering/RenderLayerModelObject.cpp
    M Source/WebCore/rendering/RenderLayerModelObject.h

  Log Message:
  -----------
  [LBSE] Switch layer-composition-inducing SVG transform attribute changes to a 
style recalc
https://bugs.webkit.org/show_bug.cgi?id=317348

Reviewed by Rob Buis.

Once layer creation becomes conditional, a transform attribute that crosses the
identity boundary flips requiresLayer() for a transformable container. Layers 
are
only created or destroyed in styleDidChange, so route that crossing through
invalidateStyleAndLayerComposition() instead of the layer-neutral transform fast
path -> the common non-crossing case keeps the fast path so animations do not
resolve style every frame. Preparation for conditional SVG layer creation - does
not effect current LBSE, while every SVG renderer still gets a layer.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::updateSVGRenderer):
* Source/WebCore/rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::svgTransformAttributeChangeInducesLayerComposition):
(WebCore::RenderLayerModelObject::updateTransformAndRepaintForSVGAfterAttributeChange):
* Source/WebCore/rendering/RenderLayerModelObject.h:

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



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

Reply via email to