зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1134021
- Use composed document when getting nsDOMWindowUtils from shadow DOM content. r=kats
This commit is contained in:
Родитель
2649263bed
Коммит
46214bb09f
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче