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
/
custom
/
path-getTotalLength-hang-ex...
6 lines
53 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
svgPath.getTotalLength() freezes webkit https://bugs.webkit.org/show_bug.cgi?id=173566 <rdar://problem/32866731> Reviewed by Dean Jackson. Source/WebCore: Ensure that curveLength() progresses by making split() return a bool indicating whether either of the resulting curves are the same as the original. This can happen when midPoint() on two close points returns a point that is the same as one of the arguments because of floating-point precision limitations. Test: svg/custom/path-getTotalLength-hang.html * platform/graphics/PathTraversalState.cpp: (WebCore::QuadraticBezier::operator ==): (WebCore::QuadraticBezier::split): (WebCore::CubicBezier::operator ==): (WebCore::CubicBezier::split): (WebCore::curveLength): LayoutTests: * svg/custom/path-getTotalLength-hang.html: Added. Canonical link: https://commits.webkit.org/190544@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-21 21:13:58 +00:00
This test should not hang.
Path length is 19.154
Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) https://bugs.webkit.org/show_bug.cgi?id=217016 Reviewed by Zalan Bujtas. Done with this command: find LayoutTests -name '*-expected.txt' | grep -v imported | xargs awk '/^CONSOLE MESSAGE:/ { next }; /^<\?xml/ { nextfile }; { print FILENAME; nextfile }' | xargs perl -i -pe 's/ +$//g' This affects many files, and it's not helpful to clog the change log with a list of them. Canonical link: https://commits.webkit.org/229803@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-27 02:15:19 +00:00
.