private void insertIntoListOfActiveFormattingElements( StackNode<T> formattingClone, int bookmark) { formattingClone.retain(); assert listPtr + 1 < listOfActiveFormattingElements.length; if (bookmark <= listPtr) { System.arraycopy(listOfActiveFormattingElements, bookmark, listOfActiveFormattingElements, bookmark + 1, (listPtr - bookmark) + 1); } listPtr++; listOfActiveFormattingElements[bookmark] = formattingClone; }
private void insertIntoListOfActiveFormattingElements( StackNode<T> formattingClone, int bookmark) { formattingClone.retain(); assert listPtr + 1 < listOfActiveFormattingElements.length; if (bookmark <= listPtr) { System.arraycopy(listOfActiveFormattingElements, bookmark, listOfActiveFormattingElements, bookmark + 1, (listPtr - bookmark) + 1); } listPtr++; listOfActiveFormattingElements[bookmark] = formattingClone; }
private void insertIntoListOfActiveFormattingElements( StackNode<T> formattingClone, int bookmark) { formattingClone.retain(); assert listPtr + 1 < listOfActiveFormattingElements.length; if (bookmark <= listPtr) { System.arraycopy(listOfActiveFormattingElements, bookmark, listOfActiveFormattingElements, bookmark + 1, (listPtr - bookmark) + 1); } listPtr++; listOfActiveFormattingElements[bookmark] = formattingClone; }
} else { stackCopy[i] = listCopy[listIndex]; stackCopy[i].retain();
} else { stackCopy[i] = listCopy[listIndex]; stackCopy[i].retain();
} else { stackCopy[i] = listCopy[listIndex]; stackCopy[i].retain();
private void appendToCurrentNodeAndPushFormattingElementMayFoster( ElementName elementName, HtmlAttributes attributes) throws SAXException { // [NOCPP[ checkAttributes(attributes, "http://www.w3.org/1999/xhtml"); // ]NOCPP] // This method can't be called for custom elements T elt = createElement("http://www.w3.org/1999/xhtml", elementName.name, attributes); StackNode<T> current = stack[currentPtr]; if (current.isFosterParenting()) { fatal(); insertIntoFosterParent(elt); } else { appendElement(elt, current.node); } StackNode<T> node = new StackNode<T>(elementName, elt, attributes.cloneAttributes(null) // [NOCPP[ , errorHandler == null ? null : new TaintableLocatorImpl(tokenizer) // ]NOCPP] ); push(node); append(node); node.retain(); // append doesn't retain itself }
push(node); append(node); node.retain(); // append doesn't retain itself
push(node); append(node); node.retain(); // append doesn't retain itself
entryClone.retain();
entryClone.retain();
entryClone.retain();
} else { stack[i] = listOfActiveFormattingElements[listIndex]; stack[i].retain();
} else { stack[i] = listOfActiveFormattingElements[listIndex]; stack[i].retain();
} else { stack[i] = listOfActiveFormattingElements[listIndex]; stack[i].retain();
newNode.retain(); // retain for list listOfActiveFormattingElements[nodeListPos] = newNode;
newNode.retain(); // retain for list listOfActiveFormattingElements[nodeListPos] = newNode; node.release(this); // release from stack
newNode.retain(); // retain for list listOfActiveFormattingElements[nodeListPos] = newNode; node.release(this); // release from stack
errFooSeenWhenFooOpen(name); StackNode<T> activeA = listOfActiveFormattingElements[activeAPos]; activeA.retain(); adoptionAgencyEndTag("a"); removeFromStack(activeA);
errFooSeenWhenFooOpen(name); StackNode<T> activeA = listOfActiveFormattingElements[activeAPos]; activeA.retain(); adoptionAgencyEndTag("a"); removeFromStack(activeA);