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 38bd2330f8
commit 588db30b9f

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;