Bug 1134021 - Use composed document when getting nsDOMWindowUtils from shadow DOM content. r=kats

This commit is contained in:
William Chen 2015-02-23 10:10:23 -08:00
parent 2649263bed
commit 46214bb09f

View File

@ -244,7 +244,7 @@ already_AddRefed<nsIDOMWindowUtils>
APZCCallbackHelper::GetDOMWindowUtils(const nsIContent* aContent)
{
nsCOMPtr<nsIDOMWindowUtils> utils;
nsIDocument* doc = aContent->GetCurrentDoc();
nsIDocument* doc = aContent->GetComposedDoc();
if (doc) {
utils = GetDOMWindowUtils(doc);
}