Closed Bug 794347 Opened 12 years ago Closed 12 years ago

tweak text-layout-01.svg to avoid rounding issue when pixel snapping

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
With the new bug 655877 text frames, the rotated "A" character from text-layout-01.svg is rendered one pixel away from where it was before.  I tracked this down to numerical accuracy due to rotations being stored as floats, resulting in a slightly-off-integer pixel value which we then snap to a different pixel boundary.  This patch just avoids this by using a non-90 degree rotation in the test.
Attachment #664808 - Flags: review?(longsonr)
Attachment #664808 - Flags: review?(longsonr) → review+
https://hg.mozilla.org/mozilla-central/rev/04f739fbc190
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: