[Webkit-unassigned] [Bug 198609] WebKit doesn't resize SVG element in response to viewBox change (with height specified and width unspecified)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 6 11:12:45 PDT 2019


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

--- Comment #2 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
When dynamically changing the viewBox attribute of the <svg> element, RenderSVGRoot::layout() calls updateLogicalWidth() and updateLogicalHeight(). The current values of RenderBox::m_frameRect, RenderBox::m_minPreferredLogicalWidth and RenderBox::m_maxPreferredLogicalWidth, which were calculated with the previous viewBox value, affect the calculation of the new width and height. If the values of these members are set to their initial values in this case, the bug is fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190606/0fbccd56/attachment.html>


More information about the webkit-unassigned mailing list