MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / setPage

Method setPage

src/main/java/org/htmlunit/html/DomNode.java:1098–1107  ·  view source on GitHub ↗

Recursively sets the new page on the node and its children @param newPage the new owning page

(final SgmlPage newPage)

Source from the content-addressed store, hash-verified

1096 * @param newPage the new owning page
1097 */
1098 private void setPage(final SgmlPage newPage) {
1099 if (page_ == newPage) {
1100 return; // nothing to do
1101 }
1102
1103 page_ = newPage;
1104 for (final DomNode node : getChildren()) {
1105 node.setPage(newPage);
1106 }
1107 }
1108
1109 /**
1110 * {@inheritDoc}

Callers 2

basicAppendMethod · 0.80
basicInsertBeforeMethod · 0.80

Calls 1

getChildrenMethod · 0.95

Tested by

no test coverage detected