Closed
Bug 129034
Opened 23 years ago
Closed 22 years ago
IFrames display on the wrong page in PP
Categories
(Core :: Print Preview, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla1.2beta
People
(Reporter: rods, Assigned: kmcclusk)
References
()
Details
(Keywords: top100, topembed, Whiteboard: [adt2] [ETA 09/23], will be adt minused on 11/5)
Attachments
(5 files, 2 obsolete files)
13 bytes,
text/html
|
Details | |
118 bytes,
text/html
|
Details | |
249 bytes,
text/html
|
Details | |
8.38 KB,
patch
|
roc
:
review+
kinmoz
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
8.45 KB,
patch
|
kinmoz
:
review+
dveditz
:
superreview+
chofmann
:
approval+
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•23 years ago
|
||
If you have enough lines in a document to push the IFrame on to the second page (for PP) it will be shown on the first page of the PP. This is the same for object tags.
Assignee | ||
Comment 2•23 years ago
|
||
Bulk moving all nsbeta1 nominations to future-P1. If they are approved (nsbeta1+) they will be moved to mozilla1.0
Priority: -- → P1
Target Milestone: mozilla1.0 → Future
Reporter | ||
Updated•22 years ago
|
Reporter | ||
Comment 6•22 years ago
|
||
Note that the testcase is part of the build, located at: file:///S:/mozilla/layout/html/tests/printer/iframe_2nd_page/index.html
Status: NEW → ASSIGNED
Reporter | ||
Comment 7•22 years ago
|
||
One interesting thing I noticed by setting some breakpoints in the CSSFrameConstructor is that the 1st PageFrame gets created and then the IFrame frame get created as part of the block reflow and then the 2nd PageFrame frame is created. Then the IFrame gets moved to the second page and it's parenting is messed up.
Comment 8•22 years ago
|
||
Comment 9•22 years ago
|
||
Comment 10•22 years ago
|
||
Comment 11•22 years ago
|
||
Assignee | ||
Comment 13•22 years ago
|
||
Fix which reparents the widgets owned by the view or its descendants when the view is inserted into its parents list of children. Solves the problem on WIN32. Mac and Linux need to have nsIWidget::SetParent(nsIWidget *aNewParent) implemented.
Attachment #98058 -
Attachment is obsolete: true
Assignee | ||
Comment 14•22 years ago
|
||
Attachment #98213 -
Attachment is obsolete: true
Assignee | ||
Comment 15•22 years ago
|
||
Note: As expected, browsing webpages and running jrgm's pageloader tests it *never* triggers the logic which calls GetWidgetForView or ReparentChildWidgets. It only gets executed when print previewing pages so there will not be any page load performance impact from this fix. SetParent needs to be implemented on Mac and Linux. I'll file separate bugs for this work. If the current patch is checked in SetParent will be a no-op on those platforms so this bug will still occur until we implement nsIWidget::SetParent
Shouldn't SetParent be setting the mParent field of the widget?
Assignee | ||
Comment 17•22 years ago
|
||
Some platforms use the basewidget's mParent member and others don't. WIN32 doesn't use it at all. I didn't set the mParent field because I didn't want to regress any behavior on the non-WIN32 platforms which may rely on mParent. I was assuming that when the nsIWidget::SetParent implementation is done for a platform that actually uses mParent it will become clear what the proper implementation for the basewidget's ::SetParent should be. For now, I think the safest behavior is to report that it's not implemented. I would like to check in this patch which includes the xp-code and WIN32 specific nsIWidget::SetParent code, and have platform experts implement the nsIWidget::SetParent logic for Mac, Linux and other platforms.
Comment 18•22 years ago
|
||
Comment on attachment 98215 [details] [diff] [review] Same as last patch minus the small part of an unrelated patch. r/sr=kin@netscape.com Just add a comment to nsWindow::SetParent() that explains why you aren't setting mParent for win32.
Attachment #98215 -
Flags: superreview+
Comment on attachment 98215 [details] [diff] [review] Same as last patch minus the small part of an unrelated patch. r=roc+moz This is rather horrid, really, but I can't think of a better way to do solve the problem.
Attachment #98215 -
Flags: review+
Assignee | ||
Comment 20•22 years ago
|
||
Fix checked in to the trunk
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 21•22 years ago
|
||
bug 168116 covers the GTK nsIWidget::SetParent implementation bug 168117 covers the Mac nsIWidget::SetParent implementation
Updated•22 years ago
|
Comment 22•22 years ago
|
||
Comment on attachment 98215 [details] [diff] [review] Same as last patch minus the small part of an unrelated patch. a=rjesup@wgate.com for 1.0 branch. Please mark on the Linux and Mac sub-bugs that we'll want those patches for 1.0 when they're done. WHen checked in, change mozilla1.0.2+ to fixed1.0.2
Attachment #98215 -
Flags: approval+
Updated•22 years ago
|
Keywords: mozilla1.0.2 → mozilla1.0.2+
Comment 23•22 years ago
|
||
This is effecting scrolling performance on a top site. Changing edt1.0.2 nomination to adt1.0.2, as the ADT is monitoring the 1.0.2 checkins.
Comment 24•22 years ago
|
||
Pls excuse my last comment, "This is effecting scrolling performance on a top site." It was a copy and paste error brought on b y big thumbs on a sunday afternoon. ;-) sujay: can you pls verify this as fixed on the trunk? thanks!
Whiteboard: [adt2] [ETA 09/23]
Comment 25•22 years ago
|
||
adt-, not verified on the trunk. Please get this verified before you renominate and then make the case why this fits the Blackbird goals.
Comment 26•22 years ago
|
||
verified in 9/26 trunk build news.com seems to render properly in PP mode. I compared actual print output with PP.
Status: RESOLVED → VERIFIED
Comment 27•22 years ago
|
||
Removing the minus to renominate this one, as it effects a top100 site.
Comment 28•22 years ago
|
||
please check in to branch and add keyword fixed1.0.2 if new driver approval is needed please make sure to get it.
Reporter | ||
Comment 29•22 years ago
|
||
ported over....
Updated•22 years ago
|
Attachment #104897 -
Flags: superreview+
Comment 30•22 years ago
|
||
Comment on attachment 104897 [details] [diff] [review] patch for 1.0.2 branch sr=dveditz based on it being the same as the reviewed trunk patch
Comment 31•22 years ago
|
||
rod: please get r= and drivers approval today as we are driving toward a release candidate
Whiteboard: [adt2] [ETA 09/23] → [adt2] [ETA 09/23], will be adt minused on 11/5
Comment 32•22 years ago
|
||
Comment on attachment 104897 [details] [diff] [review] patch for 1.0.2 branch r=kin@netscape.com
Attachment #104897 -
Flags: review+
Comment 33•22 years ago
|
||
Comment on attachment 104897 [details] [diff] [review] patch for 1.0.2 branch a=chofmann for 1.0.2
Attachment #104897 -
Flags: approval+
Comment 35•22 years ago
|
||
Just talked to Rod. This has landed on the branch. Linking to our meta.
Blocks: blackbird
You need to log in
before you can comment on or make changes to this bug.
Description
•