[Webkit-unassigned] [Bug 194903] Transform-origin on SVG breaks when zoom in or out

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 15 15:32:53 PDT 2019


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

--- Comment #22 from Joseph Pecoraro <joepeck at webkit.org> ---
Comment on attachment 363972
  --> https://bugs.webkit.org/attachment.cgi?id=363972
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=363972&action=review

>> Source/WebCore/svg/SVGGraphicsElement.cpp:-107
>> -
> 
> I do.not think this change is correct. With this change if you open the file  LayoutTests/svg/zoom/page/zoom-css-transforms.svg and you manually Command-+, the display will be wrong. I think the above if-stament should only be executed if (style->transformBox() != TransformBox::FillBox). In case of TransformBox::FillBox, boundingBox is the logical bounds of the renderer. Otherwise, boundingBox Is multiplied by the zooming factor. So we need to remove this scaling somehow from the matrix.

If I put this inside of an `if (style->transformBox() != TransformBox::FillBox)` block then this no longer solves duplicate 195434.

-- 
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/20190315/7731b2ac/attachment.html>


More information about the webkit-unassigned mailing list