Closed Bug 464970 Opened 17 years ago Closed 17 years ago

nsCSSBorderRenderer::AreBorderSideFinalStylesSame is too pessimistic

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(3 files)

Attached patch patchSplinter Review
When nsCSSBorderRenderer::AreBorderSideFinalStylesSame is given an aSides mask that doesn't include all the sides, it still checks any sides that aren't in the mask if they're after the first side that it does check. I found this while debugging a reftest failure (pixel-rounding/border-width-5, border-width-6, and 2 others) that happens only on my machine. It fixes the failure, but it's clearly not the real machine-specific problem.
Attachment #348234 - Flags: review?(vladimir)
Here's a testcase for the issue I was debugging; the pixel along the bottom edge, second from the left, ends up one shade off (127 rather than 128 in the green component).
Here's a <canvas> testcase for that same bug. Attachment 348234 [details] [diff] fixes attachment 348252 [details], but not this one. However, vlad's image surface build fixes this testcase but not attachment 348252 [details]. (I see the bug on both 32-bit and 64-bit firefox builds.)
(In reply to comment #2) > However, vlad's image surface build fixes this testcase but not attachment > 348252 [details]. That build is https://build.mozilla.org/tryserver-builds/2008-11-13_19:08-vladimir@mozilla.com-isurfgrrr/
Comment on attachment 348234 [details] [diff] [review] patch This is a simple fix to make this function do what it says it does, and thus restore an optimization that makes a bunch of reftests pass on my machine.
Attachment #348234 - Flags: approval1.9.1b2?
Comment on attachment 348234 [details] [diff] [review] patch a191b2=beltzner
Attachment #348234 - Flags: approval1.9.1b2? → approval1.9.1b2+
Pushed to m-c: http://hg.mozilla.org/mozilla-central/rev/73bda3268799 Presumably you want to make these tests into reftests, so in-testsuite?
Group: mozilla-confidential
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Group: mozilla-confidential
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: