Bug 537046 - crash in [@ nsWSRunObject::GetWSBoundingParent() ]; r=peterv

This commit is contained in:
Ehsan Akhgari
2010-01-15 12:17:48 -05:00
parent cbc7a5f2c2
commit 157021705f

View File

@@ -694,6 +694,8 @@ nsWSRunObject::AdjustWhitespace()
already_AddRefed<nsIDOMNode>
nsWSRunObject::GetWSBoundingParent()
{
if (!mNode)
return nsnull;
nsCOMPtr<nsIDOMNode> wsBoundingParent = mNode;
while (!IsBlockNode(wsBoundingParent))
{