diff --git a/layout/generic/nsInlineFrame.cpp b/layout/generic/nsInlineFrame.cpp index 79bcb7883c93..8791e2329e1a 100644 --- a/layout/generic/nsInlineFrame.cpp +++ b/layout/generic/nsInlineFrame.cpp @@ -561,7 +561,7 @@ nsReflowStatus nsInlineFrame::ReflowUnmappedChildren(nsIPresContext* aPresContex for (;;) { // Get the next content object nsIContentPtr kid = mContent->ChildAt(kidIndex); - if (nsnull == kid) { + if (kid.IsNull()) { result = NS_FRAME_COMPLETE; break; } diff --git a/layout/html/base/src/nsInlineFrame.cpp b/layout/html/base/src/nsInlineFrame.cpp index 79bcb7883c93..8791e2329e1a 100644 --- a/layout/html/base/src/nsInlineFrame.cpp +++ b/layout/html/base/src/nsInlineFrame.cpp @@ -561,7 +561,7 @@ nsReflowStatus nsInlineFrame::ReflowUnmappedChildren(nsIPresContext* aPresContex for (;;) { // Get the next content object nsIContentPtr kid = mContent->ChildAt(kidIndex); - if (nsnull == kid) { + if (kid.IsNull()) { result = NS_FRAME_COMPLETE; break; }