mContent->GetDocument(result);
mContent->GetDocument(&result);
nsTextFrame::GetDocument(nsIPresContext* aPresContext){  nsIDocument* result = nsnull;  if (mContent) {    mContent->GetDocument(result);  }  if (!result && aPresContext) {    nsIPresShell* shell;    aPresContext->GetShell(&shell);    if (shell) {      shell->GetDocument(&result);      NS_RELEASE(shell);    }  }  return result;}