Closed Bug 477504 Opened 15 years ago Closed 10 years ago

bc_borderoffset2.html reftest failure on the mac

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: bernd_mozilla, Assigned: jwatt)

Details

Attachments

(2 files, 1 obsolete file)

the reftest fails on tinderbox, I don't have a mac so I am disabling the test for now.
The reason this is happening is because generally border lines are snapped to device pixels implicitly because they are drawn using nsRenderingContext::DrawLine/DrawRect/FillRect which all snap. However, in one case in nsCSSRendering.cpp's DrawSolidBorderSegment we use nsRenderingContext::FillPolygon() to bevel the edges, and that function does not do snapping.
Assignee: bernd_mozilla → jwatt
Attached patch patch (obsolete) — Splinter Review
I've been porting nsRenderingContext code to Moz2D so the code I mentioned in the previous comment is no longer using nsRenderingContext. This patch changes the new Moz2D code to use the variant of NSRectToRect that takes a DrawTarget so that it can snap to the DrawTarget's device pixels.
Attachment #8507829 - Flags: review?(mats)
Attached patch patchSplinter Review
Attachment #8507829 - Attachment is obsolete: true
Attachment #8507829 - Flags: review?(mats)
Attachment #8507830 - Flags: review?(mats)
Comment on attachment 8507830 [details] [diff] [review]
patch

Looks good.  (don't forget to add a commit message)
Attachment #8507830 - Flags: review?(mats) → review+
https://hg.mozilla.org/mozilla-central/rev/171e352854e7
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: