Lines Matching refs:textNodes
255 LinkedList<HtmlDocument.Text> textNodes = Lists.newLinkedList();
259 textNodes.add((HtmlDocument.Text) node);
261 mergeTextNodes(textNodes, out);
265 mergeTextNodes(textNodes, out);
270 * Flushes any Text nodes in {@code textNodes} into a single Text node
271 * in {@code output}. {@code textNodes} is guaranteed to be empty when
273 * @param textNodes Text nodes.
276 private static void mergeTextNodes(LinkedList<HtmlDocument.Text> textNodes,
278 if (!textNodes.isEmpty()) {
279 if (textNodes.size() == 1) {
280 output.add(textNodes.removeFirst());
284 for (HtmlDocument.Text text : textNodes) {
292 while (!textNodes.isEmpty()) {
293 HtmlDocument.Text text = textNodes.removeFirst();