mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1222127: Use the inner window to compute style. r=baku
This commit is contained in:
parent
adc0813403
commit
4f7c071591
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user