Closed
Bug 550680
Opened 15 years ago
Closed 4 years ago
Native theme elements have rightmost line stripped
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
Attachments
(3 files, 1 obsolete file)
After the fix to bug 549666, native theme elements can have their rightmost line of pixels stripped. See a screenshot on 549666. Using RoundOut() rather than Round() seems to fix this and have no undesirable effects.
Attachment #430833 -
Flags: review?(vladimir)
Comment 1•15 years ago
|
||
I don't think this will fix it without misaligning the control in some cases... Is it possible that the context has a fractional translation pushed to it?
FTR, similar bugs were bug 446463 on Mac and bug 404816 on Linux.
Assignee | ||
Comment 2•15 years ago
|
||
(In reply to comment #1)
> I don't think this will fix it without misaligning the control in some cases...
> Is it possible that the context has a fractional translation pushed to it?
>
> FTR, similar bugs were bug 446463 on Mac and bug 404816 on Linux.
A transform is used on the context to place the rect. So that should still cause proper alignment - in theory. I couldn't find any misalignments, but I might have overlooked something for sure. In any case it shouldn't misalign more than the current round, should it?
Comment 3•15 years ago
|
||
(In reply to comment #2)
> A transform is used on the context to place the rect.
Is this the transform after the rounding? I'm concerned about a transform with unrounded values.
Comment 4•15 years ago
|
||
Comment 5•15 years ago
|
||
Comment 6•15 years ago
|
||
Does the testcase show the problem of this bug? And does your patch pass the reftest? (I don't have a Windows machine to test.)
Assignee | ||
Comment 7•15 years ago
|
||
(In reply to comment #6)
> Does the testcase show the problem of this bug? And does your patch pass the
> reftest? (I don't have a Windows machine to test.)
It does not pass, your concerns are correct. The rounding affects only that a large enough area is drawn. It does not fix that in some of the area in your textcases the controls GDI draws are actually 1 pixel too small. I'll need to look into how to fix this, thanks!
Attachment #430833 -
Flags: review?(vladimir)
Assignee | ||
Comment 9•15 years ago
|
||
So the trick here is to RoundOut before creating the temporary surface. That way the widget will be drawn correctly. This makes the above mentioned reftest work, and seems to solve all remaining native theme element drawing problems.
Attachment #430833 -
Attachment is obsolete: true
Attachment #431687 -
Flags: review?(vladimir)
Attachment #431687 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 10•15 years ago
|
||
Comment 11•15 years ago
|
||
Verified fixed using hourly build Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a3pre) Gecko/20100312 Minefield/3.7a3pre ID:20100312053645
Not changing the status as I'm not sure if Bas has other work to do here since he didn't change the status to resolved fixed.
Comment 13•15 years ago
|
||
I still lose popup menu separators every now and then. I haven't been able to repro it.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a4pre) Gecko/20100315 Minefield/3.7a4pre - Build ID: 20100315210142
Comment 14•15 years ago
|
||
Popup menu separators are now being lost often with the latest build.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a4pre) Gecko/20100317 Minefield/3.7a4pre - Build ID: 20100317125512
Comment 15•15 years ago
|
||
I've finally discovered that losing menu separators every now and then only happens with d2d/dw enabled. Another consequence is choppy scrolling at times (see https://bugzilla.mozilla.org/show_bug.cgi?id=550495 )
Comment 16•15 years ago
|
||
Still getting missing separators but not as often as before. I can't repro it, it just happens. Sometimes only the menu popups are affected while the context menus aren't.
Comment 17•15 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a4pre) Gecko/20100403 Minefield/3.7a4pre - Build ID: 20100403071118
Comment 18•15 years ago
|
||
Is this going to land soon? I keep losing my menu separators.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100429 Minefield/3.7a5pre Firefox/3.6 - Build ID: 20100429041232
Assignee | ||
Comment 19•15 years ago
|
||
(In reply to comment #18)
> Is this going to land soon? I keep losing my menu separators.
>
> Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100429
> Minefield/3.7a5pre Firefox/3.6 - Build ID: 20100429041232
It did land, I'm pretty sure you're the only one still seeing problems :( Although I have no explanation why.
Comment 20•15 years ago
|
||
No there is another (I'm a star wars fan). Some other guy also has the problem.
Comment 21•15 years ago
|
||
Bas. Have a look at https://bugzilla.mozilla.org/show_bug.cgi?id=550768
Comment 22•15 years ago
|
||
My separator problem has been solved by bug 551350.
Assignee | ||
Updated•4 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•