Closed Bug 225820 Opened 21 years ago Closed 21 years ago

Refactor nsFrameFrame to fix bugs and improve code

Categories

(Core :: Layout, defect, P1)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch revised patchSplinter Review
Okay... There are only a few changes from the last patch. The nsBlockFrame
change and the cosmetic fix that you requested is in there.

I don't know how visibility:hidden <frame>s worked before. To get it to work
now I had to make <frame>s work like <iframe>s and hook their view managers up
into the parent view hierarchy (nsDocumentViewer.cpp change); this ensures that
when the nsSubDocumentFrame's view is hidden, all the views in the subdocument
are treated as hidden. This change will also make <frame>s transparent by
default. I think that's the right thing. To get printing and print preview to
hide <frame>s I adjusted the logic in nsPrintEngine to generalize the IFRAME
hiding code to all subdocuments.

To get printing and print preview to work properly with IFRAMEs I had to
eliminate their assumptions about getting to the inner frame in nsPrintEngine.

I've tested all the testcases in all the bugs you mentioned, as well as the
IFRAME testcase you posted. They all seem to work. The position:relative bugs
that you were worried about were all about computing the correct overflow area.
That shouldn't affect or be affected by these changes.
Attachment #135606 - Flags: superreview?(dbaron)
Attachment #135606 - Flags: review?(dbaron)
Comment on attachment 135606 [details] [diff] [review]
revised patch

r+sr=dbaron, although this may be a little risky to land this close to the
freeze
Attachment #135606 - Flags: superreview?(dbaron)
Attachment #135606 - Flags: superreview+
Attachment #135606 - Flags: review?(dbaron)
Attachment #135606 - Flags: review+
Yeah. I think I'll save it for 1.7a.
Blocks: 207707
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: