Bug 263348

Summary: [SVG] Recursive marker bounding box computation is ad-hocly done
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yusuke Suzuki
Reported 2023-10-18 17:18:45 PDT
Right now, the spec and the implementation do not have clear view about how to handle circular / recursive marker bounding box computation. As a result, we are right now just preventing the crash, and that's it. We are using stale repaint bounding box in a bit random way (if some gets re-layout, and some didn't get, then some renderer use the other renderer's stale repaint bounding box randomly). We need reasonable behavior for this pattern. (including prohibiting this kind of SVG, but ultimately, it is nice if we can have clear description in the spec. Right now, the spec is not explaining the way to stop this recursion).
Attachments
Yusuke Suzuki
Comment 1 2023-10-18 17:20:27 PDT
Detailed discussion is in https://github.com/WebKit/WebKit/pull/19103's review comments. We agree that currently this is not specified and our implementation can grab stale repaint bounding box.
Radar WebKit Bug Importer
Comment 2 2023-10-25 17:19:23 PDT
Note You need to log in before you can comment on or make changes to this bug.