Lines Matching refs:next
136 Element next;
147 while ((next = it.next()) != null) {
148 if (!inRange(next)) {
149 if (completeDoc && next.getAttributes().getAttribute(
160 if next is child of current increment indent
163 if (indentNeedsIncrementing(current, next)) {
165 } else if (current.getParentElement() != next.getParentElement()) {
167 next and current are not siblings
170 next.
173 while (top != next.getParentElement()) {
188 } else if (current.getParentElement() == next.getParentElement()) {
190 if next and current are siblings the indent level
201 if (!next.isLeaf() || isFormElementWithContent(next.getAttributes())) {
202 blockElementStack.push(next);
203 startTag(next);
205 emptyTag(next);
207 current = next;
823 * incremented. Basically, if next is a child of current, and
824 * next is NOT a synthesized element, the indent level will be
825 * incremented. If there is a parent-child relationship and "next"
833 private boolean indentNeedsIncrementing(Element current, Element next) {
834 if ((next.getParentElement() == current) && !inPre) {
838 } else if (synthesizedElement(next)) {