Bug 247669 - [LBSE] Enforce presence of a RenderSVGViewportContainer, even if the <svg> has no children
Summary: [LBSE] Enforce presence of a RenderSVGViewportContainer, even if the <svg> ha...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nikolas Zimmermann
URL:
Keywords: InRadar
Depends on:
Blocks: 90738
  Show dependency treegraph
 
Reported: 2022-11-09 02:44 PST by Nikolas Zimmermann
Modified: 2022-11-12 07:59 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolas Zimmermann 2022-11-09 02:44:54 PST
The anonymous RenderSVGViewportContainer, enclosing all descendants of the outermost <svg> element, is usually created when the first child is supposed to be added to the <svg> element. This logic fails, if there is no descendant. This creates problems when one wants to compute getCTM() / getScreenCTM() matrices for such a <svg> element -- the viewBox transformation would be ignored, since it is supposed to be handled via the RenderSVGViewportContainer, which is not there -> fix that.
Comment 1 Nikolas Zimmermann 2022-11-09 03:16:46 PST
Pull request: https://github.com/WebKit/WebKit/pull/6293
Comment 2 EWS 2022-11-12 07:58:23 PST
Committed 256604@main (e9c7dfad5a10): <https://commits.webkit.org/256604@main>

Reviewed commits have been landed. Closing PR #6293 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-11-12 07:59:19 PST
<rdar://problem/102275206>