nsCOMPtr<nsILoadGroup> loadGroup; doc->GetDocumentLoadGroup(getter_AddRefs(loadGroup));
nsCOMPtr<nsILoadGroup> loadGroup = doc->GetDocumentLoadGroup();
nsresult CantRenderReplacedElementEvent::RemoveLoadGroupRequest(){  nsresult rv = NS_OK;  if (mDummyLayoutRequest) {    nsCOMPtr<nsIRequest> request = mDummyLayoutRequest;    mDummyLayoutRequest = nsnull;    nsCOMPtr<nsIPresShell> presShell = do_QueryReferent(mPresShell);    if (!presShell) return NS_ERROR_FAILURE;        nsCOMPtr<nsIDocument> doc;    presShell->GetDocument(getter_AddRefs(doc));    if (!doc) return NS_ERROR_FAILURE;;    nsCOMPtr<nsILoadGroup> loadGroup;    doc->GetDocumentLoadGroup(getter_AddRefs(loadGroup));    if (!loadGroup) return NS_ERROR_FAILURE;    rv = loadGroup->RemoveRequest(request, nsnull, NS_OK);  }  return rv;}