INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. @param node the node that has just been added to the document
(final DomNode node)
| 1796 | * @param node the node that has just been added to the document |
| 1797 | */ |
| 1798 | void notifyNodeAdded(final DomNode node) { |
| 1799 | if (node instanceof DomElement element1) { |
| 1800 | addMappedElement(element1, true); |
| 1801 | |
| 1802 | if (node instanceof BaseFrameElement element) { |
| 1803 | frameElements_.add(element); |
| 1804 | } |
| 1805 | |
| 1806 | if (node.getFirstChild() != null) { |
| 1807 | for (final Iterator<HtmlElement> iterator = node.new DescendantHtmlElementsIterator(); |
| 1808 | iterator.hasNext();) { |
| 1809 | final HtmlElement child = iterator.next(); |
| 1810 | if (child instanceof BaseFrameElement element) { |
| 1811 | frameElements_.add(element); |
| 1812 | } |
| 1813 | } |
| 1814 | } |
| 1815 | |
| 1816 | if ("base".equals(node.getNodeName())) { |
| 1817 | calculateBase(); |
| 1818 | } |
| 1819 | } |
| 1820 | node.onAddedToPage(); |
| 1821 | } |
| 1822 | |
| 1823 | /** |
| 1824 | * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> |
no test coverage detected