Closed
Bug 224607
Opened 21 years ago
Closed 21 years ago
Dynamic change of CSS 'display' does not repaint view correctly
Categories
(Core :: Web Painting, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla1.6beta
People
(Reporter: MatsPalmgren_bugz, Assigned: roc)
References
()
Details
(Keywords: regression)
Attachments
(4 files, 1 obsolete file)
35.75 KB,
image/png
|
Details | |
35.55 KB,
image/png
|
Details | |
21.05 KB,
text/html
|
Details | |
742 bytes,
patch
|
blizzard
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Dynamic change of CSS 'display' does not repaint view correctly STEPS TO REPRODUCE: 1. load http://www.trionica.com 2. click 'Links' in left nav bar (this should take you to the URL) 3. click 'Expand All' ACTUAL RESULTS: The old area where the headings used to be is not cleared properly and is obscuring newly exposed content. See first screenshot. EXPECTED RESULTS: After forcing a repaint by covering the window the view is correct (reflow not needed). See second screenshot. BUILDS & PLATFORMS TESTED: Bug occurs in Mozilla nightly trunk build 2003-11-03-05 on Linux Bug occurs in Mozilla 1.5 on Linux Bug does NOT occur in Mozilla 1.4 on Linux
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
Assignee | ||
Comment 4•21 years ago
|
||
Mats, can you get someone to minimize that testcase? :-)
Comment 5•21 years ago
|
||
This broke between build 2003-08-18-05 and build 2003-08-19-22. Looks like more fallout from bug 194638 (backing out that patch fixes this bug)
Comment 6•21 years ago
|
||
See also bug 220698
Comment 7•21 years ago
|
||
I bet the problem is that when the Resize() call is made on the nsWindow, it clobbers the existing mUpdateArea. In particular, note that if and only if aRepaint is true the mUpdateArea is stomped on with the new window area. If there was something under the old area it won't get repainted, looks like...
Comment 8•21 years ago
|
||
Patch fixes this bug and bug 220698. I'm not sure whether this is the right thing to do -- should the window be keeping track of its pre-resize mUpdateArea? Or should something else be handling the invalidation of that on window resize?
Updated•21 years ago
|
Attachment #134725 -
Flags: superreview?(roc)
Attachment #134725 -
Flags: review?(roc)
Assignee | ||
Comment 9•21 years ago
|
||
I think this should just be setting the update area to (0, 0, width, height). The mUpdateArea seems to be relative to the window origin. Has this been broken always?
Comment 10•21 years ago
|
||
It's been like that for years, yeah. I suspect for legitimate reasons, though.
Assignee | ||
Comment 11•21 years ago
|
||
I say we change it to (0,0). It's just not consistent with the rest of the code.
Assignee | ||
Comment 12•21 years ago
|
||
Comment on attachment 134725 [details] [diff] [review] This fixes things see my comments in the bug
Attachment #134725 -
Flags: superreview?(roc)
Attachment #134725 -
Flags: superreview-
Attachment #134725 -
Flags: review?(roc)
Attachment #134725 -
Flags: review-
Comment 13•21 years ago
|
||
Attachment #134725 -
Attachment is obsolete: true
Comment 14•21 years ago
|
||
Comment on attachment 134868 [details] [diff] [review] Yeah, this fixes things too sr=me (since this is roc's patch, really). blizzard, can you think of any reason _not_ to make this change?
Attachment #134868 -
Flags: superreview+
Attachment #134868 -
Flags: review?(blizzard)
Comment 15•21 years ago
|
||
Comment on attachment 134868 [details] [diff] [review] Yeah, this fixes things too r=blizzard I looked through the code and I don't think it's going to break anything.
Attachment #134868 -
Flags: review?(blizzard) → review+
Comment 16•21 years ago
|
||
Taking to make sure this lands.
Assignee: roc → bz-vacation
Priority: -- → P1
Summary: Dynamic change of CSS 'display' does not repaint view correctly → [FIXr]Dynamic change of CSS 'display' does not repaint view correctly
Target Milestone: --- → mozilla1.6beta
Comment 17•21 years ago
|
||
Back to roc, since it's his patch.
Assignee: bz-vacation → roc
Summary: [FIXr]Dynamic change of CSS 'display' does not repaint view correctly → Dynamic change of CSS 'display' does not repaint view correctly
Comment 18•21 years ago
|
||
And checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•6 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
•