nsTextFrame::IsEmpty()
nsTextFrame::IsEmpty(PRBool aIsQuirkMode, PRBool aIsPre, PRBool* aResult)
nsTextFrame::IsEmpty(){  NS_ASSERTION(!(mState & TEXT_IS_ONLY_WHITESPACE) ||               !(mState & TEXT_ISNOT_ONLY_WHITESPACE),               "Invalid state");    // XXXldb Should this check compatibility mode as well???  if (GetStyleText()->WhiteSpaceIsSignificant()) {    return PR_FALSE;  }  if (mState & TEXT_ISNOT_ONLY_WHITESPACE) {    return PR_FALSE;  }  if (mState & TEXT_IS_ONLY_WHITESPACE) {    return PR_TRUE;  }    nsCOMPtr<nsITextContent> textContent( do_QueryInterface(mContent) );  if (! textContent) {    NS_NOTREACHED("text frame has no text content");    return PR_TRUE;  }    PRBool isEmpty = textContent->IsOnlyWhitespace();  mState |= (isEmpty ? TEXT_IS_ONLY_WHITESPACE : TEXT_ISNOT_ONLY_WHITESPACE);  return isEmpty;}