Commit 3e3680c2 authored by Chris Price's avatar Chris Price Committed by Michał Gołębiowski

Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311.

parent c418b94e
...@@ -53,7 +53,7 @@ function vendorPropName( style, name ) { ...@@ -53,7 +53,7 @@ function vendorPropName( style, name ) {
// NOTE: we've included the "window" in window.getComputedStyle // NOTE: we've included the "window" in window.getComputedStyle
// because jsdom on node.js will break without it. // because jsdom on node.js will break without it.
function getStyles( elem ) { function getStyles( elem ) {
return window.getComputedStyle( elem, null ); return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
} }
function showHide( elements, show ) { function showHide( elements, show ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment