Closed
Bug 421632
Opened 17 years ago
Closed 17 years ago
[FIX]CSS outline rendering cut off
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: stream, Assigned: bzbarsky)
References
()
Details
(Keywords: regression)
Attachments
(6 files)
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008030706 Minefield/3.0b5pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008030706 Minefield/3.0b5pre
In some cases the border is not displaying correctly, see the image for details.
Reproducible: Always
Reporter | ||
Comment 1•17 years ago
|
||
Reporter | ||
Updated•17 years ago
|
Version: unspecified → Trunk
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Component: Networking → Layout
Ever confirmed: true
Flags: blocking1.9?
Keywords: regression
QA Contact: networking → layout
Updated•17 years ago
|
Component: Layout → GFX: Thebes
QA Contact: layout → thebes
Interesting, I can reproduce a variant of this by going to a ftp listing and then moving the mouse over an item, but just over the top pixel of it... sometimes the bottom border doesn't draw. If I move the mouse entirely within the item then usually the entire border gets drawn. The hover effect is an outline:
tbody > tr:hover {
outline: 1px solid ThreeDLightShadow;
-moz-outline-radius: .3em;
}
So I'm guessing whatever code does invalidation doesn't quite compute the same coverage area as the outline is drawn over. Still, I wouldn't block on a ftp listing quirk here, this close to 1.9, but we should fix it soon.
Flags: wanted1.9.0.x+
Flags: blocking1.9?
Flags: blocking1.9-
Comment 3•17 years ago
|
||
I guess it's the same issue for about:crashes in bug 417098
Reporter | ||
Comment 4•17 years ago
|
||
In about:crashes the right, left and bottom outline is always not visible. While in FTP listings sometimes is visible, sometimes not.
Comment 6•17 years ago
|
||
(In reply to comment #2)
> Still, I wouldn't block on a ftp listing quirk here
This isn't really about ftp listings but outline not working as expected.
Flags: blocking1.9- → blocking1.9?
Summary: FTP listing style on hover is bugged → CSS outline rendering cut off
Comment 7•17 years ago
|
||
Plus, it's a recent regression.
Reporter | ||
Comment 8•17 years ago
|
||
Hm maybe, but we shouldn't have been hitting the composite colors path.. and the problem looks more like an invalidation/update region bug, and that code that changed is just painting code.
Comment 11•17 years ago
|
||
That's a div with tabindex=0. Outline comes from html.css:
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/style/html.css&rev=3.216&mark=472,481#468
Comment 12•17 years ago
|
||
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
It's not bug 359568 -- I just tried a local backout of that, no change. It seems to be related to rounding (yay!); the effect changes depending on whether the tab bar is visible or not.
Here's a testcase. Looks to be an invalidation issue with outlines. First table has an outline just on hover, and you can see the painting getting cut off constrained to the table cell. The second has an outline without hover, and things look fine.
Looking at that regression range, my guess would be bug 414298; I can't back that out cleanly to verify, but there were followups in bug 416073... probably just something that was missed?
bz, can you take a look? Hopefully should be an easy fix.
Assignee: nobody → bzbarsky
Blocks: 414298
Keywords: qawanted
Updated•17 years ago
|
Attachment #309212 -
Attachment is patch: false
Attachment #309212 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 16•17 years ago
|
||
The change is basically described in the comments in nsTableFrame::InvalidateFrame; the rest is just changes to pass in the old overflow area. I also sprinkled some CheckInvalidateSizeChange pixie dust on the proceedings.
Attachment #309356 -
Flags: superreview?(roc)
Attachment #309356 -
Flags: review?(roc)
Assignee | ||
Comment 17•17 years ago
|
||
I guess we'll add the test when we have infrastructure for it...
Flags: in-testsuite?
Summary: CSS outline rendering cut off → [FIX]CSS outline rendering cut off
Attachment #309356 -
Flags: superreview?(roc)
Attachment #309356 -
Flags: superreview+
Attachment #309356 -
Flags: review?(roc)
Attachment #309356 -
Flags: review+
Assignee | ||
Comment 18•17 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 19•17 years ago
|
||
Comment on attachment 309356 [details] [diff] [review]
Fix
>RCS file: /cvsroot/mozilla/layout/tables/nsTableFrame.cpp,v
>+ // descriptiong of its hackishness.
s/descriptiong/description/ !?
Assignee | ||
Comment 20•17 years ago
|
||
Yeah. Spelling fixed.
Comment 21•17 years ago
|
||
verified fixed using the testcase and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041217 Minefield/3.0pre ID:2008041217
--> Verified fixed
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Flags: wanted1.9.0.x+
Comment 22•16 years ago
|
||
Attachment #384727 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•15 years ago
|
Attachment #384727 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 23•15 years ago
|
||
Pushed test as http://hg.mozilla.org/mozilla-central/rev/7163ec41feac
Thanks for doing that, Jonathan!
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•