]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed infinite recursion problem when compiling with "pretty"
authorArtur Signell <artur.signell@itmill.com>
Thu, 18 Dec 2008 11:17:11 +0000 (11:17 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 18 Dec 2008 11:17:11 +0000 (11:17 +0000)
svn changeset:6265/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Util.java

index 2e7892a697c5de0196e03ffc934af97f982b9bc6..40312df17d5eaef6cdb2f739e127247bf38e8e8a 100644 (file)
@@ -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 "";