Skip to content

[LBSE] Prepare computeVisibleRectsInSVGContainer for non-layered SVG elements#63881

Merged
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
rwlbuis:eng/LBSE-Prepare-computeVisibleRectsInSVGContainer-for-non-layered-SVG-elements
Apr 30, 2026
Merged

[LBSE] Prepare computeVisibleRectsInSVGContainer for non-layered SVG elements#63881
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
rwlbuis:eng/LBSE-Prepare-computeVisibleRectsInSVGContainer-for-non-layered-SVG-elements

Conversation

@rwlbuis
Copy link
Copy Markdown
Contributor

@rwlbuis rwlbuis commented Apr 29, 2026

642e030

[LBSE] Prepare computeVisibleRectsInSVGContainer for non-layered SVG elements
https://bugs.webkit.org/show_bug.cgi?id=313637

Reviewed by Nikolas Zimmermann.

Prepare computeVisibleRectsInSVGContainer for non-layered SVG elements by relying
for this new case on localTransform instead of the transform cached inside RenderLayer.

* Source/WebCore/rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::computeVisibleRectsInSVGContainer const):

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

4aaf2df

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 🧪 api-mac ✅ 🧪 api-wpe
🧪 ios-wk2-wpt 🧪 api-mac-debug 🛠 gtk3-libwebrtc
🧪 api-ios ✅ 🧪 mac-wk1 ✅ 🛠 gtk
🛠 ios-safer-cpp ✅ 🧪 mac-wk2 🧪 gtk-wk2
✅ 🛠 vision 🧪 mac-AS-debug-wk2 🧪 api-gtk
✅ 🛠 🧪 merge 🛠 vision-sim ✅ 🧪 mac-wk2-stress 🛠 playstation
🧪 vision-wk2 🧪 mac-intel-wk2
✅ 🛠 tv 🛠 mac-safer-cpp
🛠 tv-sim
🛠 watch
🛠 watch-sim

@rwlbuis rwlbuis self-assigned this Apr 29, 2026
@rwlbuis rwlbuis added the SVG For bugs in the SVG implementation. label Apr 29, 2026
Copy link
Copy Markdown
Contributor

@nikolaszimmermann nikolaszimmermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one nit.

transform = *layer()->transform();

if (!transform.isIdentity())
adjustedRects.transform(transform);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we only need the TransformationMatrix for the adjustedRects mapping, I would avoid creating a local variable copying the whole matrix, but just execute the mapping for both cases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I removed the local var.

@rwlbuis rwlbuis force-pushed the eng/LBSE-Prepare-computeVisibleRectsInSVGContainer-for-non-layered-SVG-elements branch from 29f651f to 4aaf2df Compare April 30, 2026 07:54
@rwlbuis rwlbuis added the merge-queue Applied to send a pull request to merge-queue label Apr 30, 2026
…elements

https://bugs.webkit.org/show_bug.cgi?id=313637

Reviewed by Nikolas Zimmermann.

Prepare computeVisibleRectsInSVGContainer for non-layered SVG elements by relying
for this new case on localTransform instead of the transform cached inside RenderLayer.

* Source/WebCore/rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::computeVisibleRectsInSVGContainer const):

Canonical link: https://commits.webkit.org/312347@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/LBSE-Prepare-computeVisibleRectsInSVGContainer-for-non-layered-SVG-elements branch from 4aaf2df to 642e030 Compare April 30, 2026 08:53
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 312347@main (642e030): https://commits.webkit.org/312347@main

Reviewed commits have been landed. Closing PR #63881 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 642e030 into WebKit:main Apr 30, 2026
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Apr 30, 2026
@rwlbuis rwlbuis deleted the eng/LBSE-Prepare-computeVisibleRectsInSVGContainer-for-non-layered-SVG-elements branch April 30, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SVG For bugs in the SVG implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants