mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
added assertion for null peeked frame pointer in Reflow.
This commit is contained in:
parent
ff9f11d487
commit
cc3251aeaf
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user