haikuwebkit/LayoutTests/svg/custom/massive-coordinates.svg

13 lines
521 B
XML
Raw Permalink Normal View History

2010-07-30 W. James MacLean <wjmaclean@google.com> Reviewed by Nikolas Zimmermann. SVG - numeric overflow for very large elements https://bugs.webkit.org/show_bug.cgi?id=25645 Two of the expected test outputs were incorrect now that parsing of large values is handled correctly. - Revised FloatRect to remove bad float-to-int conversions in enclosingIntRect() - Revised _parseNumber to do right-to-left float-based parsing of input value * platform/gtk/svg/custom/pattern-excessive-malloc-expected.txt: Removed. * platform/mac/svg/custom/mask-excessive-malloc-expected.txt: * platform/mac/svg/custom/massive-coordinates-expected.txt: Added. * platform/mac/svg/custom/pattern-excessive-malloc-expected.txt: * platform/qt/svg/custom/pattern-excessive-malloc-expected.checksum: Removed. * platform/qt/svg/custom/pattern-excessive-malloc-expected.png: Removed. * platform/qt/svg/custom/pattern-excessive-malloc-expected.txt: Removed. * svg/custom/mask-excessive-malloc-expected.txt: Added. * svg/custom/massive-coordinates-expected.txt: Added. * svg/custom/massive-coordinates.svg: Added. * svg/custom/pattern-excessive-malloc-expected.txt: Added. 2010-07-30 W. James MacLean <wjmaclean@google.com> Reviewed by Nikolas Zimmermann. SVG - numeric overflow for very large elements https://bugs.webkit.org/show_bug.cgi?id=25645 Two of the expected test outputs were incorrect now that parsing of large values is handled correctly. - Revised FloatRect to remove bad float-to-int conversions in enclosingIntRect() - Revised _parseNumber to do right-to-left float-based parsing of input value Test: svg/custom/massive-coordinates.svg * platform/graphics/FloatRect.cpp: (WebCore::safeFloatToInt): (WebCore::enclosingIntRect): * svg/SVGParserUtilities.cpp: (WebCore::_parseNumber): Canonical link: https://commits.webkit.org/55201@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-07-30 22:24:28 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" height="600" id="svgroot" version="1.1" width="800" x="0" y="0">
<path d="M -1000,12345678901234567890 L 200,200" style="fill:none;stroke:#0000ff;stroke-width:1px;stroke-opacity:1" />
<path d="M 600,400 L 1000,-9.8765432109876543210e+19" style="fill:none;stroke:#00ff00;stroke-width:1px;stroke-opacity:1" />
</svg>