зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1222127: Use the inner window to compute style. r=baku
This commit is contained in:
Родитель
ae2f3493a3
Коммит
6df095ed85
|
@ -46,7 +46,7 @@ nsWinUtils::GetComputedStyleDeclaration(nsIContent* aContent)
|
|||
|
||||
// Returns number of items in style declaration
|
||||
nsCOMPtr<nsPIDOMWindow> window =
|
||||
do_QueryInterface(elm->OwnerDoc()->GetWindow());
|
||||
do_QueryInterface(elm->OwnerDoc()->GetInnerWindow());
|
||||
if (!window)
|
||||
return nullptr;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче