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

This commit is contained in:
Chris Price 2013-08-19 18:10:11 +02:00 committed by Michał Gołębiowski
parent c418b94eb4
commit 3e3680c2cd

View File

@ -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 ) {