@@ -4786,7 +4786,7 @@ private boolean adoptionAgencyEndTag(@Local String name) throws SAXException {
4786
4786
assert node == listOfActiveFormattingElements [nodeListPos ];
4787
4787
assert node == stack [nodePos ];
4788
4788
T clone = createElement ("http://www.w3.org/1999/xhtml" ,
4789
- node .name , node .attributes .cloneAttributes (null ), commonAncestor .node
4789
+ node .name , node .attributes .cloneAttributes (), commonAncestor .node
4790
4790
// CPPONLY: , htmlCreator(node.getHtmlCreator())
4791
4791
);
4792
4792
StackNode <T > newNode = createStackNode (node .getFlags (), node .ns ,
@@ -4818,7 +4818,7 @@ private boolean adoptionAgencyEndTag(@Local String name) throws SAXException {
4818
4818
}
4819
4819
T clone = createElement ("http://www.w3.org/1999/xhtml" ,
4820
4820
formattingElt .name ,
4821
- formattingElt .attributes .cloneAttributes (null ), furthestBlock .node
4821
+ formattingElt .attributes .cloneAttributes (), furthestBlock .node
4822
4822
// CPPONLY: , htmlCreator(formattingElt.getHtmlCreator())
4823
4823
);
4824
4824
StackNode <T > formattingClone = createStackNode (
@@ -5005,12 +5005,12 @@ private void reconstructTheActiveFormattingElements() throws SAXException {
5005
5005
T clone ;
5006
5006
if (currentNode .isFosterParenting ()) {
5007
5007
clone = createAndInsertFosterParentedElement ("http://www.w3.org/1999/xhtml" , entry .name ,
5008
- entry .attributes .cloneAttributes (null )
5008
+ entry .attributes .cloneAttributes ()
5009
5009
// CPPONLY: , htmlCreator(entry.getHtmlCreator())
5010
5010
);
5011
5011
} else {
5012
5012
clone = createElement ("http://www.w3.org/1999/xhtml" , entry .name ,
5013
- entry .attributes .cloneAttributes (null ), currentNode .node
5013
+ entry .attributes .cloneAttributes (), currentNode .node
5014
5014
// CPPONLY: , htmlCreator(entry.getHtmlCreator())
5015
5015
);
5016
5016
appendElement (clone , currentNode .node );
@@ -5424,7 +5424,7 @@ private void appendToCurrentNodeAndPushFormattingElementMayFoster(
5424
5424
checkAttributes (attributes , "http://www.w3.org/1999/xhtml" );
5425
5425
// ]NOCPP]
5426
5426
// This method can't be called for custom elements
5427
- HtmlAttributes clone = attributes .cloneAttributes (null );
5427
+ HtmlAttributes clone = attributes .cloneAttributes ();
5428
5428
// Attributes must not be read after calling createElement, because
5429
5429
// createElement may delete attributes in C++.
5430
5430
T elt ;
@@ -6130,7 +6130,7 @@ private boolean charBufferContainsNonWhitespace() {
6130
6130
StackNode <T > newNode = new StackNode <T >(-1 );
6131
6131
newNode .setValues (node .getFlags (), node .ns ,
6132
6132
node .name , node .node , node .popName ,
6133
- node .attributes .cloneAttributes (null )
6133
+ node .attributes .cloneAttributes ()
6134
6134
// CPPONLY: , node.getHtmlCreator()
6135
6135
// [NOCPP[
6136
6136
, node .getLocator ()
@@ -6217,7 +6217,7 @@ public boolean snapshotMatches(TreeBuilderState<T> snapshot) {
6217
6217
}
6218
6218
6219
6219
@ SuppressWarnings ("unchecked" ) public void loadState (
6220
- TreeBuilderState <T > snapshot , Interner interner )
6220
+ TreeBuilderState <T > snapshot )
6221
6221
throws SAXException {
6222
6222
// CPPONLY: mCurrentHtmlScriptIsAsyncOrDefer = false;
6223
6223
StackNode <T >[] stackCopy = snapshot .getStack ();
@@ -6254,9 +6254,9 @@ public boolean snapshotMatches(TreeBuilderState<T> snapshot) {
6254
6254
StackNode <T > node = listCopy [i ];
6255
6255
if (node != null ) {
6256
6256
StackNode <T > newNode = createStackNode (node .getFlags (), node .ns ,
6257
- Portability . newLocalFromLocal ( node .name , interner ) , node .node ,
6258
- Portability . newLocalFromLocal ( node .popName , interner ) ,
6259
- node .attributes .cloneAttributes (null )
6257
+ node .name , node .node ,
6258
+ node .popName ,
6259
+ node .attributes .cloneAttributes ()
6260
6260
// CPPONLY: , node.getHtmlCreator()
6261
6261
// [NOCPP[
6262
6262
, node .getLocator ()
@@ -6272,8 +6272,8 @@ public boolean snapshotMatches(TreeBuilderState<T> snapshot) {
6272
6272
int listIndex = findInArray (node , listCopy );
6273
6273
if (listIndex == -1 ) {
6274
6274
StackNode <T > newNode = createStackNode (node .getFlags (), node .ns ,
6275
- Portability . newLocalFromLocal ( node .name , interner ) , node .node ,
6276
- Portability . newLocalFromLocal ( node .popName , interner ) ,
6275
+ node .name , node .node ,
6276
+ node .popName ,
6277
6277
null
6278
6278
// CPPONLY: , node.getHtmlCreator()
6279
6279
// [NOCPP[
0 commit comments