summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-06-25 14:09:50 +0300
committerArtur Signell <artur@vaadin.com>2012-06-25 14:09:50 +0300
commitd3e58e4d0999bb987795f2bc943c1584b2480617 (patch)
tree9bf73ca1b7a045897fd1db66e635e41c1ed364cf /src
parent0fcade9ddfe7b624faa2e80e6138b5ac5c5ce950 (diff)
downloadvaadin-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.java6
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();
}
}