diff options
author | Artur Signell <artur@vaadin.com> | 2012-06-25 14:09:50 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-06-25 14:09:50 +0300 |
commit | d3e58e4d0999bb987795f2bc943c1584b2480617 (patch) | |
tree | 9bf73ca1b7a045897fd1db66e635e41c1ed364cf /src | |
parent | 0fcade9ddfe7b624faa2e80e6138b5ac5c5ce950 (diff) | |
download | vaadin-framework-d3e58e4d0999bb987795f2bc943c1584b2480617.tar.gz vaadin-framework-d3e58e4d0999bb987795f2bc943c1584b2480617.zip |
Avoid getting root panel document multiple times (#8717)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/LayoutManagerIE8.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/LayoutManagerIE8.java b/src/com/vaadin/terminal/gwt/client/LayoutManagerIE8.java index 742594671f..ea130779ea 100644 --- a/src/com/vaadin/terminal/gwt/client/LayoutManagerIE8.java +++ b/src/com/vaadin/terminal/gwt/client/LayoutManagerIE8.java @@ -7,6 +7,7 @@ import java.util.HashMap; import java.util.Iterator; import java.util.Map; +import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.ui.RootPanel; @@ -36,11 +37,12 @@ public class LayoutManagerIE8 extends LayoutManager { @Override protected void cleanMeasuredSizes() { + Document document = RootPanel.get().getElement().getOwnerDocument(); + Iterator<Element> i = measuredSizes.keySet().iterator(); while (i.hasNext()) { Element e = i.next(); - if (e.getOwnerDocument() != RootPanel.get().getElement() - .getOwnerDocument()) { + if (e.getOwnerDocument() != document) { i.remove(); } } |