Closed
Bug 1044372
Opened 10 years ago
Closed 9 years ago
SVG path getTotalLength and getPointAtLength gives wrong values when hardware acceleration is on
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: kowik1984, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446
Steps to reproduce:
Open this site: http://kovacsv.hu/errors/pointsonpath.html
Actual results:
The red dots not follow the path, and the total length value is incorrect.
Expected results:
The points should be on the path (as in Chrome 36 and Internet Explorer 11). The path total length should be near 448.
Setting product/component to match bug 1024926
Component: Untriaged → SVG
Product: Firefox → Core
Comment 2•10 years ago
|
||
Works for me. Does turning hardware acceleration off fix it for you?
Flags: needinfo?(kowik1984)
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Robert Longson from comment #2)
> Works for me. Does turning hardware acceleration off fix it for you?
I updated the link with another example:
http://kovacsv.hu/errors/pointsonpath.html
My experiences with hardware acceleration:
ON: Both examples wrong.
OFF: First example seems good, but the second is still wrong.
Flags: needinfo?(kowik1984)
Comment 4•10 years ago
|
||
You should make the second example a different bug as it seems to exhibit different symptoms with regards to HWA.
Reporter | ||
Updated•10 years ago
|
Summary: SVG path getTotalLength and getPointAtLength still gives wrong values → SVG path getTotalLength and getPointAtLength gives wrong values when hardware acceleration is on
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Robert Longson from comment #4)
> You should make the second example a different bug as it seems to exhibit
> different symptoms with regards to HWA.
I separated the two errors. From now, this bug is only about the first error, which occurs only if hardware acceleration is on:
http://kovacsv.hu/errors/pointsonpath.html
I will file another bug about the second test case.
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 6•10 years ago
|
||
Returns 0 when (x2, y2) == (x, y). In this case should be around 66.
Comment 7•10 years ago
|
||
in FindInflectionApproximationRange
cp41.x == cp41.y
so
*aMin == -INF and *aMax = INF
and then everything that follows skips out
Result matches IE and Chrome in Ubuntu 15.10 with Nightly with the patch from bug 1134549 applied, which was recently pushed in https://hg.mozilla.org/mozilla-central/rev/3e73fc0dfb01
Updated•9 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•