Bug 247669
Summary: | [LBSE] Enforce presence of a RenderSVGViewportContainer, even if the <svg> has no children | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nikolas Zimmermann <zimmermann> |
Component: | SVG | Assignee: | Nikolas Zimmermann <zimmermann> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | rbuis, sabouhallawa, webkit-bug-importer, zimmermann |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 90738 |
Nikolas Zimmermann
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Nikolas Zimmermann
Pull request: https://github.com/WebKit/WebKit/pull/6293
EWS
Committed 256604@main (e9c7dfad5a10): <https://commits.webkit.org/256604@main>
Reviewed commits have been landed. Closing PR #6293 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/102275206>