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
parent adc0813403
commit 4f7c071591

View File

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