nsCOMPtr<nsIStyleContext> styleContext;
nsHTMLEditor::GetBodyStyleContext(nsIStyleContext** aStyleContext){  nsCOMPtr<nsIDOMElement> body;  nsresult res = GetBodyElement(getter_AddRefs(body));  if (NS_FAILED(res)) return res;  nsCOMPtr<nsIContent> content = do_QueryInterface(body);  nsIFrame *frame;  if (!mPresShellWeak) return NS_ERROR_NOT_INITIALIZED;  nsCOMPtr<nsIPresShell> ps = do_QueryReferent(mPresShellWeak);  if (!ps) return NS_ERROR_NOT_INITIALIZED;  res = ps->GetPrimaryFrameFor(content, &frame);  if (NS_FAILED(res)) return res;    nsCOMPtr<nsIStyleContext> styleContext;  return ps->GetStyleContextFor(frame, aStyleContext);}