Closed
Bug 106355
Opened 23 years ago
Closed 23 years ago
Loading any page paints top of page over the UI
Categories
(Core Graveyard :: GFX, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: roc)
References
Details
Attachments
(1 file, 1 obsolete file)
1.66 KB,
patch
|
kmcclusk
:
review+
waterson
:
superreview+
|
Details | Diff | Splinter Review |
Build 2001-10-23-08. Start the browser (mozilla about:blank). Load a page. I chose www.mozilla.org. Notice that the menus and navigation buttons on the toolbar disappear and are replaced with the mozilla graphic. Making those areas repaint by moving the mouse over them or minimizing and unminimizing the window fixes the problem until the next page load....
Reporter | ||
Comment 1•23 years ago
|
||
This was not a problem at 2001-10-22-13 (pulled from cvs from that date/time)
Comment 2•23 years ago
|
||
I see similar painting problems looking at the tinderbox page and scrolling up and down by dragging the thumb, and while reading mail, where parts of the window just don't redraw properly. Build 2001102308 on Linux.
Reporter | ||
Comment 3•23 years ago
|
||
Ok. This was caused by roc+moz's checkin of 10/22/2001 18:35 (the Refresh() rewrite). Reassinging to roc+moz
Assignee: kmcclusk → roc+moz
is this the same as bug 106309?
Assignee | ||
Comment 5•23 years ago
|
||
Sounds like my bug but I can't reproduce it with a build I pulled and built yesterday morning. I'm on Linux. Tried all the methods mentioned here, in Classic and Modern themes just in case. I will try the latest Linux nightly.
Assignee | ||
Comment 6•23 years ago
|
||
I'm using 2001102308 right now and I can't reproduce any of these problems. How can we proceed? Should I back out the change?
Comment 7•23 years ago
|
||
I'm using CVS HEAD and I've had the problem for about two days. IMO it's worth a backout for now, and we will a) see whether this was really the cause, and b) fix it at leisure.
Assignee | ||
Comment 8•23 years ago
|
||
Hmm. From nsRenderingContextGTK::CopyOffScreenBits()
> #if 0
> // XXX impliment me
> if (aCopyFlags & NS_COPYBITS_USE_SOURCE_CLIP_REGION)
> {
> // we should use the source clip region if this flag is used...
> nsIRegion *region;
> CopyClipRegion();
> }
> #endif
Windows and Mac seem to support USE_SOURCE_CLIP_REGION. Can anyone reproduce
this bug there? So far all the reports I see are Linux. (Doesn't explain why I
can't see it on my Linux box though.)
Comment 9•23 years ago
|
||
Adding Blizzard, for wisdom on why this might be GTKFE-only.
Assignee | ||
Comment 10•23 years ago
|
||
Now I can't see how this EVER worked given that USE_SOURCE_CLIP_REGION doesn't do anything with GTK.
Assignee | ||
Comment 11•23 years ago
|
||
Hmm, do I need reviews for backout? I have to go to work and a bunch of meetings. Someone else will have to do the backout, it's OK with me. Here are the commands: cvs update -j3.76 -j3.75 mozilla/view/src/nsViewManager.h cvs update -j3.203 -j3.202 mozilla/view/src/nsViewManager.cpp
Comment 12•23 years ago
|
||
*** Bug 106309 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 13•23 years ago
|
||
Thanks to bzbarsky I found the bug. On some Linux boxes (not all), we are receiving paint requests for areas completely outside the widget's view area. This triggered a bug in my changed code. I will attach a patch which bz confirms fixes the bug for him. It includes a debug message for this case because we might still want to track down why these bogus repaints are being generated. I'd like r and sr please.
Assignee | ||
Comment 14•23 years ago
|
||
Assignee | ||
Comment 15•23 years ago
|
||
By the way, the reason USE_SOURCE_CLIP_REGION works in GTK, as far as I can tell from looking at the code, is that in GTK the clip region is shared across all drawing surfaces for the rendering context, so USE_SOURCE_CLIP_REGION is meaningless there.
Comment 16•23 years ago
|
||
Well, that certainly seems to fix it.
Comment 17•23 years ago
|
||
Comment on attachment 54917 [details] [diff] [review] Don't copy offscreen buffer unless we set the clip region and painted something r=kmcclusk@netscape.com
Attachment #54917 -
Flags: review+
Assignee | ||
Comment 18•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Attachment #54917 -
Attachment is obsolete: true
Assignee | ||
Comment 19•23 years ago
|
||
Sorry, forgot to include the warning printf. Please apply r and sr to the new patch. Thanks!
Comment 20•23 years ago
|
||
Comment on attachment 54927 [details] [diff] [review] D'oh --- here's the patch with the warning printf r=kmcclusk@netscape.com
Attachment #54927 -
Flags: review+
Comment 21•23 years ago
|
||
*** Bug 106557 has been marked as a duplicate of this bug. ***
Comment 22•23 years ago
|
||
Wouldn't it be cleaner to use NS_WARNING which adds file and line number to the warning?
Assignee | ||
Comment 23•23 years ago
|
||
Yeah, except that NS_WARNING can't print parameters.
Comment 24•23 years ago
|
||
Doh, missed that. Guess you could build the string on the fly before passing it to NS_WARNING, but nevermind :-)
Comment 25•23 years ago
|
||
This problem also occurs in the Mail component.
Comment 26•23 years ago
|
||
Comment on attachment 54927 [details] [diff] [review] D'oh --- here's the patch with the warning printf nifty; sr=waterson
Attachment #54927 -
Flags: superreview+
Assignee | ||
Comment 27•23 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 28•23 years ago
|
||
*** Bug 106239 has been marked as a duplicate of this bug. ***
Comment 29•23 years ago
|
||
*** Bug 106632 has been marked as a duplicate of this bug. ***
Comment 30•23 years ago
|
||
*** Bug 106673 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 31•23 years ago
|
||
*** Bug 106498 has been marked as a duplicate of this bug. ***
Comment 32•23 years ago
|
||
*** Bug 106742 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 33•23 years ago
|
||
*** Bug 108447 has been marked as a duplicate of this bug. ***
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•