зеркало из https://github.com/mozilla/pjs.git
added assertion for null peeked frame pointer in Reflow.
This commit is contained in:
Родитель
ac295837af
Коммит
0b47ff0f0b
|
@ -449,7 +449,8 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
|
|||
aReflowState.reflowCommand->GetNext(nextFrame, PR_FALSE);
|
||||
|
||||
// See if it's one of our absolutely positioned child frames
|
||||
if (nextFrame && mAbsoluteFrames.ContainsFrame(nextFrame)) {
|
||||
NS_ASSERTION(nsnull != nextFrame, "next frame in reflow command is null.");
|
||||
if (mAbsoluteFrames.ContainsFrame(nextFrame)) {
|
||||
// Remove the next frame from the reflow path
|
||||
aReflowState.reflowCommand->GetNext(nextFrame, PR_TRUE);
|
||||
|
||||
|
|
|
@ -449,7 +449,8 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
|
|||
aReflowState.reflowCommand->GetNext(nextFrame, PR_FALSE);
|
||||
|
||||
// See if it's one of our absolutely positioned child frames
|
||||
if (nextFrame && mAbsoluteFrames.ContainsFrame(nextFrame)) {
|
||||
NS_ASSERTION(nsnull != nextFrame, "next frame in reflow command is null.");
|
||||
if (mAbsoluteFrames.ContainsFrame(nextFrame)) {
|
||||
// Remove the next frame from the reflow path
|
||||
aReflowState.reflowCommand->GetNext(nextFrame, PR_TRUE);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче