INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. @param node the node that has just been removed from the tree
(final DomNode node)
| 1826 | * @param node the node that has just been removed from the tree |
| 1827 | */ |
| 1828 | void notifyNodeRemoved(final DomNode node) { |
| 1829 | if (node instanceof HtmlElement element) { |
| 1830 | removeMappedElement(element, true, true); |
| 1831 | |
| 1832 | if (node instanceof BaseFrameElement) { |
| 1833 | frameElements_.remove(node); |
| 1834 | } |
| 1835 | for (final HtmlElement child : node.getHtmlElementDescendants()) { |
| 1836 | if (child instanceof BaseFrameElement) { |
| 1837 | frameElements_.remove(child); |
| 1838 | } |
| 1839 | } |
| 1840 | |
| 1841 | if ("base".equals(node.getNodeName())) { |
| 1842 | calculateBase(); |
| 1843 | } |
| 1844 | } |
| 1845 | } |
| 1846 | |
| 1847 | /** |
| 1848 | * Adds an element to the ID and name maps, if necessary. |
no test coverage detected