deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -289,8 +289,7 @@ nsContextMenuInfo::GetBackgroundImageRequest(nsIDOMNode * aDOMNode, imgIRequest
|
||||
|
||||
// nothing on the element or its parent style contexts, fall back to canvas frame for the whole page
|
||||
rv = NS_ERROR_FAILURE;
|
||||
nsCOMPtr<nsIContent> rootContent;
|
||||
document->GetRootContent(getter_AddRefs(rootContent));
|
||||
nsIContent *rootContent = document->GetRootContent();
|
||||
NS_ENSURE_TRUE(rootContent, NS_ERROR_FAILURE);
|
||||
|
||||
presShell->GetPrimaryFrameFor(rootContent, &frame);
|
||||
|
||||
Reference in New Issue
Block a user