WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
297045
[LegacySVG] Don't check 'visibility' in LegacyRenderSVGResourceMasker
https://bugs.webkit.org/show_bug.cgi?id=297045
Summary
[LegacySVG] Don't check 'visibility' in LegacyRenderSVGResourceMasker
Ahmad Saleem
Reported
2025-08-07 00:54:54 PDT
Hi Team, While going through Blink's commit, I came across another potential merge, where only in LegacySVG - we have this bug: Test Case:
https://jsfiddle.net/L3nqvrsc/
^ Passes in Chrome Canary 141 and Firefox Nightly 143, fails on Safari Technology Preview 225 + WebKit ToT (
298320@main
). It passes with LBSE. Blink Commit:
https://chromium.googlesource.com/chromium/src/+/51a75fa55ba71462963ddcf085995cf3eca66104
WebKit Source:
https://searchfox.org/wubkat/rev/c0e84bbc88a4c382789dea06bdead904860b6e8c/Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceMasker.cpp#146
Remove - || style->usedVisibility() != Visibility::Visible
https://searchfox.org/wubkat/rev/c0e84bbc88a4c382789dea06bdead904860b6e8c/Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceMasker.cpp#170
void LegacyRenderSVGResourceMasker::calculateMaskContentRepaintRect(RepaintRectCalculation repaintRectCalculation) { Ref maskElement = this->maskElement(); for (auto& child : childrenOfType<SVGElement>(maskElement)) { CheckedPtr renderer = child.renderer(); if (!renderer) continue; const CheckedRef style = renderer->style(); if (style->display() == DisplayType::None) continue; m_maskContentBoundaries[repaintRectCalculation].unite(renderer->localToParentTransform().mapRect(renderer->repaintRectInLocalCoordinates(repaintRectCalculation))); } } Use for-range loop like other and update it. ___________________________ Just raising so we can fix it. Above does fix it. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-08-07 00:55:02 PDT
<
rdar://problem/157729389
>
Ahmad Saleem
Comment 2
2026-01-01 16:12:40 PST
Pull request:
https://github.com/WebKit/WebKit/pull/55990
EWS
Comment 3
2026-01-02 08:27:02 PST
Committed
305047@main
(bda153efaee1): <
https://commits.webkit.org/305047@main
> Reviewed commits have been landed. Closing PR #55990 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug