Closed
Bug 464970
Opened 17 years ago
Closed 17 years ago
nsCSSBorderRenderer::AreBorderSideFinalStylesSame is too pessimistic
Categories
(Core :: Web Painting, defect)
Core
Web Painting
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: dbaron)
Details
Attachments
(3 files)
|
920 bytes,
patch
|
vlad
:
review+
beltzner
:
approval1.9.1b2+
|
Details | Diff | Splinter Review |
|
735 bytes,
text/html; charset=UTF-8
|
Details | |
|
798 bytes,
text/html; charset=UTF-8
|
Details |
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)
| Assignee | ||
Comment 1•17 years ago
|
||
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).
| Assignee | ||
Comment 2•17 years ago
|
||
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.)
| Assignee | ||
Comment 3•17 years ago
|
||
(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/
Attachment #348234 -
Flags: review?(vladimir) → review+
| Assignee | ||
Comment 4•17 years ago
|
||
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 5•17 years ago
|
||
Comment on attachment 348234 [details] [diff] [review]
patch
a191b2=beltzner
Attachment #348234 -
Flags: approval1.9.1b2? → approval1.9.1b2+
Comment 6•17 years ago
|
||
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
| Assignee | ||
Updated•17 years ago
|
Group: mozilla-confidential
| Assignee | ||
Comment 7•17 years ago
|
||
Also needed to land http://hg.mozilla.org/mozilla-central/rev/e8bb73413554
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•