This website requires JavaScript.
Explore
Help
Sign In
nephele
/
haikuwebkit
Watch
1
Star
0
Fork
You've already forked haikuwebkit
0
Code
Issues
Releases
Activity
haiku
haikuwebkit
/
LayoutTests
/
svg
/
css
/
crash-path-zero-height-view...
2 lines
5 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
SVGFitToViewBox::viewBoxToViewTransform() has to count for zero physical width and height before calling SVGPreserveAspectRatio::getCTM() https://bugs.webkit.org/show_bug.cgi?id=143903 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-04-20 Reviewed by Daniel Bates. Source/WebCore: Ensure that the SVG viewBoxToView transformation is always invertible. CG path drawing functions crash if the context is transformed to non- invertible matrix. Tests: svg/css/crash-path-zero-height-viewbox.svg svg/css/crash-path-zero-width-viewbox.svg * svg/SVGFitToViewBox.cpp: (WebCore::SVGFitToViewBox::viewBoxToViewTransform): Do not call SVGPreserveAspectRatio::getCTM() if the physical width or the physical height is zero. * svg/SVGPreserveAspectRatio.cpp: (WebCore::SVGPreserveAspectRatio::getCTM): Ensure that we are not dividing by zero in this function. LayoutTests: * svg/css/crash-path-zero-height-viewbox-expected.txt: Added. * svg/css/crash-path-zero-height-viewbox.svg: Added. * svg/css/crash-path-zero-width-viewbox-expected.txt: Added. * svg/css/crash-path-zero-width-viewbox.svg: Added. Make sure if the physical width or the physical height of an SVG is zero and a viewBox is specified, we do not crash. Canonical link: https://commits.webkit.org/161947@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-04-20 20:43:13 +00:00
PASS