Bug 937688 - Some small cosmetic changes to existing code. r=botond
This commit is contained in:
@@ -112,10 +112,10 @@ APZCCallbackHelper::UpdateSubFrame(nsIContent* aContent,
|
||||
}
|
||||
|
||||
already_AddRefed<nsIDOMWindowUtils>
|
||||
APZCCallbackHelper::GetDOMWindowUtils(nsIDocument* doc)
|
||||
APZCCallbackHelper::GetDOMWindowUtils(nsIDocument* aDoc)
|
||||
{
|
||||
nsCOMPtr<nsIDOMWindowUtils> utils;
|
||||
nsCOMPtr<nsIDOMWindow> window = doc->GetDefaultView();
|
||||
nsCOMPtr<nsIDOMWindow> window = aDoc->GetDefaultView();
|
||||
if (window) {
|
||||
utils = do_GetInterface(window);
|
||||
}
|
||||
@@ -123,10 +123,10 @@ APZCCallbackHelper::GetDOMWindowUtils(nsIDocument* doc)
|
||||
}
|
||||
|
||||
already_AddRefed<nsIDOMWindowUtils>
|
||||
APZCCallbackHelper::GetDOMWindowUtils(nsIContent* content)
|
||||
APZCCallbackHelper::GetDOMWindowUtils(nsIContent* aContent)
|
||||
{
|
||||
nsCOMPtr<nsIDOMWindowUtils> utils;
|
||||
nsIDocument* doc = content->GetCurrentDoc();
|
||||
nsIDocument* doc = aContent->GetCurrentDoc();
|
||||
if (doc) {
|
||||
utils = GetDOMWindowUtils(doc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user