merging from an aborted push for bug 474016

This commit is contained in:
Clint Talbert 2009-02-26 16:15:54 -08:00
commit 8fa526c5f4
3 changed files with 7 additions and 3 deletions

View File

@ -7175,6 +7175,8 @@ nsDocument::OnPageShow(PRBool aPersisted, nsIDOMEventTarget* aDispatchStartTarge
// See nsIDocument
if (!aDispatchStartTarget) {
// Set mIsShowing before firing events, in case those event handlers
// move us around.
mIsShowing = PR_TRUE;
}
@ -7217,6 +7219,8 @@ nsDocument::OnPageHide(PRBool aPersisted, nsIDOMEventTarget* aDispatchStartTarge
// See nsIDocument
if (!aDispatchStartTarget) {
// Set mIsShowing before firing events, in case those event handlers
// move us around.
mIsShowing = PR_FALSE;
}

View File

@ -98,7 +98,7 @@
node.addEventListener("page" + type, listener, false);
listener.detach = function() {
node.removeEventListener("page" + type, listener, false);
node.removeEventListener("page" + type, listener, false);
}
return listener;
}

View File

@ -80,7 +80,7 @@ nsPageFrame::~nsPageFrame()
{
}
NS_IMETHODIMP nsPageFrame::Reflow(nsPresContext* aPresContext,
NS_IMETHODIMP nsPageFrame::Reflow(nsPresContext* aPresContext,
nsHTMLReflowMetrics& aDesiredSize,
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus)
@ -628,7 +628,7 @@ nsPageBreakFrame::GetIntrinsicHeight()
}
nsresult
nsPageBreakFrame::Reflow(nsPresContext* aPresContext,
nsPageBreakFrame::Reflow(nsPresContext* aPresContext,
nsHTMLReflowMetrics& aDesiredSize,
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus)