public boolean removeShadowRoot(ShadowElement shadow) { if (_auxinf != null && _auxinf.seRoots != null) if (_auxinf.seRoots.remove(shadow)) { shadow.detach(); removeFromShadowIdMap(this, (Component) shadow); return true; } return false; }
private static void removeFromShadowIdMap(Component comp) { if (comp instanceof ShadowElementCtrl) { Component host = ((ShadowElementCtrl) comp).getShadowHostIfAny(); if (host != null) { removeFromShadowIdMap(host, comp); } } }
private static void removeFellow(Component comp, IdSpace owner) { if (owner instanceof Component) ((AbstractComponent) owner).unbindFromIdSpace(comp.getId()); else if (owner instanceof Page) ((AbstractPage) owner).removeFellow(comp); if (owner == null && comp instanceof ShadowElement) removeFromShadowIdMap(comp); }