From: Artur Signell Date: Thu, 18 Dec 2008 11:17:11 +0000 (+0000) Subject: Fixed infinite recursion problem when compiling with "pretty" X-Git-Tag: 6.7.0.beta1~3515 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77e45a0157680049590b7afc9b519a163a09c61e;p=vaadin-framework.git Fixed infinite recursion problem when compiling with "pretty" svn changeset:6265/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/Util.java b/src/com/itmill/toolkit/terminal/gwt/client/Util.java index 2e7892a697..40312df17d 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/Util.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/Util.java @@ -688,8 +688,9 @@ public class Util { // IE return el.currentStyle[p]; } else if (window.getComputedStyle) { - //Sa, FF, Opera - return document.defaultView.getComputedStyle(el,null).getPropertyValue(p); + // Sa, FF, Opera + var view = el.ownerDocument.defaultView; + return view.getComputedStyle(el,null).getPropertyValue(p); } else { // fall back for non IE, Sa, FF, Opera return "";