if (textContent) { PRInt32 textLength; textContent->GetTextLength(&textLength); if (textLength) { PRBool onlyWhiteSpace; textContent->IsOnlyWhitespace(&onlyWhiteSpace); result = !onlyWhiteSpace; }
if (textContent && textContent->TextLength()) { result = !textContent->IsOnlyWhitespace();
static PRBool IsFirstLetterContent(nsIContent* aContent){  PRBool result = PR_FALSE;  nsCOMPtr<nsITextContent> textContent = do_QueryInterface(aContent);  if (textContent) {    PRInt32 textLength;    textContent->GetTextLength(&textLength);    if (textLength) {      PRBool onlyWhiteSpace;      textContent->IsOnlyWhitespace(&onlyWhiteSpace);      result = !onlyWhiteSpace;    }  }  return result;}