rv = deviceContext->CreateRenderingContext(widget.get(), result);
rv = deviceContext->CreateRenderingContext(widget, result);
PresShell::CreateRenderingContext(nsIFrame *aFrame,                                  nsIRenderingContext** aResult){  NS_PRECONDITION(nsnull != aResult, "null ptr");  if (nsnull == aResult) {    return NS_ERROR_NULL_POINTER;  }  nsresult  rv;  nsIView *view = aFrame->GetClosestView();  nsCOMPtr<nsIWidget> widget;  if (view) {    view->GetViewManager()->GetWidgetForView(view, getter_AddRefs(widget));  }  nsIRenderingContext* result = nsnull;  nsIDeviceContext *deviceContext = mPresContext->DeviceContext();  if (widget) {    rv = deviceContext->CreateRenderingContext(widget.get(), result);  }  else {    rv = deviceContext->CreateRenderingContext(result);  }  *aResult = result;  return rv;}