Closed Bug 270032 Opened 20 years ago Closed 20 years ago

Floating div with overflow auto flickers while changing font size

Categories

(Core :: Layout: Floats, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha6

People

(Reporter: moz, Assigned: bzbarsky)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041113

This bug is very likely to be related to bug 132337. 

Load the example URL, which is the « Simplified testcase » in bug 132337. The
second div flickers on the top left part of the window when your dynamically
change the font size with Ctrl++ and Ctrl+-. The effect is increased when you
are zooming with Ctrl+MouseWheel.


Reproducible: Always
Steps to Reproduce:

Actual Results:  
Flickering of the second div, moving from its position to the top left corner of
the window, then back to its correct position.

Expected Results:  
The second div should go to its correct position without flickering to the top
left corner of the window.

I've been able to same kind of flickering with a floatting iframe :

#Main {	width: 300px; float: left; background: #ff0; }
#Ban { float: left; }

<div id="Main">ABC</div>
<div id="Ban"> <iframe name="google_ads_frame"
src="iframe-content.html"></iframe> </div>

I will attach a complete file.
I reduced even more this test case.
Seing this as well with trunk build 20041115, Windows XP
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Floats
Ever confirmed: true
Keywords: testcase
Attached patch PatchSplinter Review
Comment on attachment 167500 [details] [diff] [review]
Patch

The part that fixes the bug is the view update batch; the rest is minor
cleanup...

I'm not sure what I think of the invalidation that
nsPresShell::StyleChangeReflow does.  Perhaps it shouldn't do it?  I suspect
that would also fix the issue here.
Attachment #167500 - Flags: superreview?(roc)
Attachment #167500 - Flags: review?(roc)
OS: Windows 2000 → All
Hardware: PC → All
Comment on attachment 167500 [details] [diff] [review]
Patch

sweet.

I didn't know we could have auto-sizing document children
Attachment #167500 - Flags: superreview?(roc)
Attachment #167500 - Flags: superreview+
Attachment #167500 - Flags: review?(roc)
Attachment #167500 - Flags: review+
We can't yet, but I keep hoping to fix that sometime. ;)
Assignee: nobody → bzbarsky
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8alpha6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: