зеркало из https://github.com/mozilla/pjs.git
fixes to turn bug #22916 into a blank window bug (instead of a crasher)
r=troy
This commit is contained in:
Родитель
4bd9bbc768
Коммит
7d9e8b8dfa
|
@ -1123,7 +1123,8 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight)
|
|||
nsReflowStatus status;
|
||||
nsIRenderingContext* rcx = nsnull;
|
||||
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsHTMLReflowState reflowState(mPresContext, rootFrame,
|
||||
eReflowReason_Initial, rcx, maxSize);
|
||||
|
@ -1221,7 +1222,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
|
|||
nsReflowStatus status;
|
||||
nsIRenderingContext* rcx = nsnull;
|
||||
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsHTMLReflowState reflowState(mPresContext, rootFrame,
|
||||
eReflowReason_Resize, rcx, maxSize);
|
||||
|
@ -1506,7 +1508,8 @@ PresShell::StyleChangeReflow()
|
|||
nsReflowStatus status;
|
||||
nsIRenderingContext* rcx = nsnull;
|
||||
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// XXX We should be using eReflowReason_StyleChange
|
||||
nsHTMLReflowState reflowState(mPresContext, rootFrame,
|
||||
|
@ -1871,7 +1874,8 @@ PresShell::ProcessReflowCommands()
|
|||
#endif
|
||||
|
||||
mFrameManager->GetRootFrame(&rootFrame);
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
#ifdef DEBUG
|
||||
if (GetVerifyReflowEnable()) {
|
||||
|
|
|
@ -1419,6 +1419,8 @@ static nscoord
|
|||
ComputeLineHeight(nsIRenderingContext* aRenderingContext,
|
||||
nsIStyleContext* aStyleContext)
|
||||
{
|
||||
NS_PRECONDITION(nsnull != aRenderingContext, "no rendering context");
|
||||
|
||||
nscoord lineHeight = -1;
|
||||
|
||||
const nsStyleText* text = (const nsStyleText*)
|
||||
|
|
|
@ -1419,6 +1419,8 @@ static nscoord
|
|||
ComputeLineHeight(nsIRenderingContext* aRenderingContext,
|
||||
nsIStyleContext* aStyleContext)
|
||||
{
|
||||
NS_PRECONDITION(nsnull != aRenderingContext, "no rendering context");
|
||||
|
||||
nscoord lineHeight = -1;
|
||||
|
||||
const nsStyleText* text = (const nsStyleText*)
|
||||
|
|
|
@ -1123,7 +1123,8 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight)
|
|||
nsReflowStatus status;
|
||||
nsIRenderingContext* rcx = nsnull;
|
||||
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsHTMLReflowState reflowState(mPresContext, rootFrame,
|
||||
eReflowReason_Initial, rcx, maxSize);
|
||||
|
@ -1221,7 +1222,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
|
|||
nsReflowStatus status;
|
||||
nsIRenderingContext* rcx = nsnull;
|
||||
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsHTMLReflowState reflowState(mPresContext, rootFrame,
|
||||
eReflowReason_Resize, rcx, maxSize);
|
||||
|
@ -1506,7 +1508,8 @@ PresShell::StyleChangeReflow()
|
|||
nsReflowStatus status;
|
||||
nsIRenderingContext* rcx = nsnull;
|
||||
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// XXX We should be using eReflowReason_StyleChange
|
||||
nsHTMLReflowState reflowState(mPresContext, rootFrame,
|
||||
|
@ -1871,7 +1874,8 @@ PresShell::ProcessReflowCommands()
|
|||
#endif
|
||||
|
||||
mFrameManager->GetRootFrame(&rootFrame);
|
||||
CreateRenderingContext(rootFrame, &rcx);
|
||||
nsresult rv=CreateRenderingContext(rootFrame, &rcx);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
#ifdef DEBUG
|
||||
if (GetVerifyReflowEnable()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче