Closed
Bug 477504
Opened 15 years ago
Closed 10 years ago
bc_borderoffset2.html reftest failure on the mac
Categories
(Core :: Layout: Tables, defect)
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.
Assignee | ||
Comment 3•10 years ago
|
||
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
Assignee | ||
Comment 4•10 years ago
|
||
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)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8507829 -
Attachment is obsolete: true
Attachment #8507829 -
Flags: review?(mats)
Attachment #8507830 -
Flags: review?(mats)
Comment 6•10 years ago
|
||
Comment on attachment 8507830 [details] [diff] [review] patch Looks good. (don't forget to add a commit message)
Attachment #8507830 -
Flags: review?(mats) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8507830 [details] [diff] [review] patch https://hg.mozilla.org/integration/mozilla-inbound/rev/171e352854e7
Attachment #8507830 -
Flags: checkin+
Comment 8•10 years ago
|
||
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.
Description
•