Bug 937688 - Some small cosmetic changes to existing code. r=botond

This commit is contained in:
Kartikaya Gupta
2013-11-13 13:20:29 -05:00
parent fa8b8c5cd1
commit 6bd3adf0d6
2 changed files with 7 additions and 7 deletions

View File

@@ -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);
}