> - in initParent, the expando then references a child element; I'm > not sure this creates a leak, as there's no loop here.
If I don't clear the __styleRuler on the parent, doing just this: LayoutPanel p = new LayoutPanel(); RootPanel.get().add(p); RootPanel.get().remove(p); Leaks. The loop is: parent -> __styleRuler expando -> styleRuler -> parent (E.g. after calling parent.appendChild(styleRuler), child gets an an implicit pointer back to its parent, e.g. for child.parentNode.) (I can also stop the leak by breaking the loop at "child -> parent" by removing the parent.appendChild(styleRuler) line.) I'm still thinking about the rest. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors