aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorBuild Agent <build@vaadin.com>2014-03-11 21:19:23 +0200
committerBuild Agent <build@vaadin.com>2014-03-11 21:19:24 +0200
commit4517428d71abadb8cb68de4709f831271f742f28 (patch)
tree712b82222d8c9eb2bf61f474f9d236fa19d5c831 /client
parent35c270eb5de2c1a30efd7790371bbae30e9f1acb (diff)
parent71e8c7efa9cef900b3307aab0d0fd4d9470810a2 (diff)
downloadvaadin-framework-4517428d71abadb8cb68de4709f831271f742f28.tar.gz
vaadin-framework-4517428d71abadb8cb68de4709f831271f742f28.zip
Merge changes from origin/7.1
7d74479 Revert "Fixes a memory leak on IE8 in LayoutManagerIE8 (#12688)" c121c4e Do not fail assertion if re-setting the same lock (#13440) c0e408c Added nojavadoc parameter to "all" build script. 0417c06 Fixed nojavadoc parameter on "all" build. 71e8c7e Make ExcludeFromSuite annotation Runtime and Inherited Change-Id: I5395660758e9bc665aaf6eb82ea27d478fa6dfbb
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/LayoutManager.java9
-rw-r--r--client/src/com/vaadin/client/LayoutManagerIE8.java18
2 files changed, 3 insertions, 24 deletions
diff --git a/client/src/com/vaadin/client/LayoutManager.java b/client/src/com/vaadin/client/LayoutManager.java
index fbf540273f..4fb656b16d 100644
--- a/client/src/com/vaadin/client/LayoutManager.java
+++ b/client/src/com/vaadin/client/LayoutManager.java
@@ -75,15 +75,6 @@ public class LayoutManager {
}
/**
- * Returns the application connection for this layout manager.
- *
- * @return connection
- */
- protected ApplicationConnection getConnection() {
- return connection;
- }
-
- /**
* Gets the layout manager associated with the given
* {@link ApplicationConnection}.
*
diff --git a/client/src/com/vaadin/client/LayoutManagerIE8.java b/client/src/com/vaadin/client/LayoutManagerIE8.java
index b7973310db..a692f126a2 100644
--- a/client/src/com/vaadin/client/LayoutManagerIE8.java
+++ b/client/src/com/vaadin/client/LayoutManagerIE8.java
@@ -19,8 +19,8 @@ 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.dom.client.Node;
import com.google.gwt.user.client.ui.RootPanel;
/**
@@ -39,12 +39,6 @@ public class LayoutManagerIE8 extends LayoutManager {
private Map<Element, MeasuredSize> measuredSizes = new HashMap<Element, MeasuredSize>();
- // this method is needed to test for memory leaks (see
- // LayoutMemoryUsageIE8ExtensionConnector) but can be private
- private int getMeasuredSizesMapSize() {
- return measuredSizes.size();
- }
-
@Override
protected void setMeasuredSize(Element element, MeasuredSize measuredSize) {
if (measuredSize != null) {
@@ -68,18 +62,12 @@ public class LayoutManagerIE8 extends LayoutManager {
@Override
protected void cleanMeasuredSizes() {
Profiler.enter("LayoutManager.cleanMeasuredSizes");
-
- // #12688: IE8 was leaking memory when adding&removing components.
- // Uses IE specific logic to figure if an element has been removed from
- // DOM or not. For this the parent element of the current UI is needed.
- // For removed elements the measured size is discarded.
- Node rootNode = getConnection().getUIConnector().getWidget()
- .getElement().getParentNode();
+ Document document = RootPanel.get().getElement().getOwnerDocument();
Iterator<Element> i = measuredSizes.keySet().iterator();
while (i.hasNext()) {
Element e = i.next();
- if (!rootNode.isOrHasChild(e)) {
+ if (e.getOwnerDocument() != document) {
i.remove();
}
}