Bug 1222127: Use the inner window to compute style. r=baku

This commit is contained in:
Kyle Huey 2015-11-19 14:47:20 +08:00
Родитель ae2f3493a3
Коммит 6df095ed85
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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