Commit bd01f5a4 authored by troy%netscape.com's avatar troy%netscape.com
Browse files

Added null pointer check in DidSetStyleContext(). This keeps us from crashing

on XML documents
parent ec990230
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -524,7 +524,7 @@ AddToPadding(nsIPresContext* aPresContext,
NS_METHOD 
NS_METHOD 
nsBodyFrame::DidSetStyleContext(nsIPresContext* aPresContext)
nsBodyFrame::DidSetStyleContext(nsIPresContext* aPresContext)
{
{
  if (0 == (NS_BODY_THE_BODY & mFlags)) {
  if ((0 == (NS_BODY_THE_BODY & mFlags)) || (nsnull == mContent)) {
    return NS_OK;
    return NS_OK;
  }
  }