Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 095dee9455f1f1164d5f880ba827660c77a52b20
https://github.com/WebKit/WebKit/commit/095dee9455f1f1164d5f880ba827660c77a52b20
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-06-18 (Thu, 18 Jun 2026)
Changed paths:
M Source/WebCore/rendering/RenderElement.cpp
M Source/WebCore/rendering/RenderLayer.cpp
M Source/WebCore/rendering/RenderLayer.h
M Source/WebCore/rendering/RenderLayerModelObject.h
M Source/WebCore/rendering/svg/RenderSVGImage.cpp
Log Message:
-----------
[LBSE] Prepare layer position, stacking and visibility handling for
non-layered SVG renderers
https://bugs.webkit.org/show_bug.cgi?id=317352
Reviewed by Rob Buis.
Teach the layer machinery about SVG renderers that have no layer of their own:
accumulate locationOffsetEquivalent() for non-layer SVG ancestors in
updateLayerPosition(), establish a stacking context for SVG-layer-aware
renderers, drop the anonymous-viewport-container computeHasVisibleContent()
special-case, relax the scrollable-area assert for an SVG document element,
guard
dirtyEnclosingLayerSVGChildrenIfNeeded() on isSVGLayer(), and preserve
RenderSVGImages container-relative location during layout.
This is a preparation for conditional SVG layer creation.
* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::dirtyEnclosingLayerSVGChildrenIfNeeded):
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::canCreateStackingContext):
(WebCore::RenderLayer::recursiveUpdateLayerPositions):
(WebCore::RenderLayer::computeHasVisibleContent const):
(WebCore::RenderLayer::updateLayerPosition):
* Source/WebCore/rendering/RenderLayer.h:
* Source/WebCore/rendering/RenderLayerModelObject.h:
(WebCore::RenderLayerModelObject::objectBoundingBoxLocation const):
* Source/WebCore/rendering/svg/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::layout):
(WebCore::RenderSVGImage::nodeAtPoint):
Canonical link: https://commits.webkit.org/315483@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications