Searched defs:textNode (Results 1 - 25 of 35) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DCreateLinkCommand.cpp52 RefPtrWillBeRawPtr<Text> textNode = Text::create(document(), m_url); local
53 appendNode(textNode.get(), anchorElement.get());
H A DInsertLineBreakCommand.cpp119 Text* textNode = toText(pos.deprecatedNode()); local
120 splitTextNode(textNode, pos.deprecatedEditingOffset());
121 insertNodeBefore(nodeToInsert, textNode);
122 Position endingPosition = firstPositionInNode(textNode);
127 Position positionBeforeTextNode(positionInParentBeforeNode(*textNode));
130 ASSERT(!textNode->renderer() || textNode->renderer()->style()->collapseWhiteSpace());
131 // Deleting insignificant whitespace will remove textNode if it contains nothing but insignificant whitespace.
132 if (textNode->inDocument())
133 insertTextIntoNode(textNode,
[all...]
H A DBreakBlockquoteCommand.cpp114 Text* textNode = toText(startNode); local
115 if ((unsigned)pos.deprecatedEditingOffset() >= textNode->length()) {
119 splitTextNode(textNode, pos.deprecatedEditingOffset());
H A DFrameSelectionTest.cpp35 Text* textNode() { return m_textNode.get(); } function in class:__anon11062::FrameSelectionTest
70 VisibleSelection validSelection(Position(textNode(), 0), Position(textNode(), 5));
99 VisibleSelection validSelection(Position(textNode(), 0), Position(textNode(), 0));
106 document().body()->removeChild(textNode());
122 VisibleSelection validSelection(Position(textNode(), 0), Position(textNode(), 0));
H A DInsertTextCommand.cpp52 RefPtrWillBeRawPtr<Text> textNode = document().createEditingTextNode(""); local
53 insertNodeAtTabSpanPosition(textNode.get(), pos);
54 return firstPositionInNode(textNode.get());
60 RefPtrWillBeRawPtr<Text> textNode = document().createEditingTextNode(""); local
61 insertNodeAt(textNode.get(), pos);
62 return firstPositionInNode(textNode.get());
104 RefPtrWillBeRawPtr<Text> textNode = start.containerText(); local
105 if (!textNode)
108 unsigned count = std::min(text.length(), textNode->length() - start.offsetInContainerNode());
112 replaceTextInNode(textNode, star
198 RefPtrWillBeRawPtr<Text> textNode = startPosition.containerText(); local
241 RefPtrWillBeRawPtr<Text> textNode = toText(node); local
253 RefPtrWillBeRawPtr<Text> textNode = toText(node); local
[all...]
H A DVisibleSelectionTest.cpp41 Text* textNode() const { return m_textNode.get(); } function in class:blink::VisibleSelectionTest
50 m_wrap->m_selection.setBase(Position(textNode(), base));
51 m_wrap->m_selection.setExtent(Position(textNode(), extend));
H A DApplyBlockElementCommand.cpp163 Node* textNode = position.containerNode(); local
165 if (!textNode || !textNode->isTextNode() || offset < 0 || offset >= textNode->maxCharacterOffset())
169 String textAtPosition = toText(textNode)->substringData(offset, 1, exceptionState);
H A DInsertParagraphSeparatorCommand.cpp352 Text* textNode = toText(leadingWhitespace.deprecatedNode()); local
353 ASSERT(!textNode->renderer() || textNode->renderer()->style()->collapseWhiteSpace());
354 replaceTextInNodePreservingMarkers(textNode, leadingWhitespace.deprecatedEditingOffset(), 1, nonBreakingSpaceString());
360 RefPtrWillBeRawPtr<Text> textNode = toText(insertionPosition.containerNode()); local
361 bool atEnd = static_cast<unsigned>(insertionPosition.offsetInContainerNode()) >= textNode->length();
363 splitTextNode(textNode, insertionPosition.offsetInContainerNode());
364 positionAfterSplit = firstPositionInNode(textNode.get());
365 insertionPosition.moveToPosition(textNode->previousSibling(), insertionPosition.offsetInContainerNode());
H A DVisiblePosition.cpp642 Text* textNode = pos.containerText(); local
643 unsigned length = textNode->length();
647 return textNode->data().characterStartingAt(offset);
H A DDeleteSelectionCommand.cpp576 Text* textNode = toText(m_leadingWhitespace.deprecatedNode()); local
577 ASSERT(!textNode->renderer() || textNode->renderer()->style()->collapseWhiteSpace());
578 replaceTextInNodePreservingMarkers(textNode, m_leadingWhitespace.deprecatedEditingOffset(), 1, nonBreakingSpaceString());
581 Text* textNode = toText(m_trailingWhitespace.deprecatedNode()); local
582 ASSERT(!textNode->renderer() ||textNode->renderer()->style()->collapseWhiteSpace());
583 replaceTextInNodePreservingMarkers(textNode, m_trailingWhitespace.deprecatedEditingOffset(), 1, nonBreakingSpaceString());
H A DCompositeEditCommand.cpp500 RefPtrWillBeRawPtr<Text> textNode = start.containerText();
501 replaceTextInNode(textNode, start.offsetInContainerNode(), end.offsetInContainerNode() - start.offsetInContainerNode(), text);
503 return Position(textNode.release(), start.offsetInContainerNode() + text.length());
616 Text* textNode = toText(node);
617 if (textNode->length() == 0)
620 RenderText* renderer = textNode->renderer();
648 RefPtrWillBeRawPtr<Text> textNode = prpTextNode; local
650 String text = textNode->data();
666 VisiblePosition visibleUpstreamPos(Position(textNode, upstream));
667 VisiblePosition visibleDownstreamPos(Position(textNode, downstrea
725 deleteInsignificantText(PassRefPtrWillBeRawPtr<Text> textNode, unsigned start, unsigned end) argument
822 Text* textNode = nodes[i].get(); local
1104 Text* textNode = toText(node); local
1395 Text* textNode = toText(caretPos.deprecatedNode()); local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DAttr.cpp94 RefPtrWillBeRawPtr<Text> textNode = document().createTextNode(value().string()); local
98 textNode->setParentOrShadowHostNode(this);
99 treeScope().adoptIfNeeded(*textNode);
100 setFirstChild(textNode.get());
101 setLastChild(textNode.get());
H A DPosition.cpp115 Position::Position(PassRefPtrWillBeRawPtr<Text> textNode, unsigned offset) argument
116 : m_anchorNode(textNode)
/external/chromium_org/third_party/WebKit/Source/core/html/shadow/
H A DDateTimeFieldElement.cpp215 Text* const textNode = toText(firstChild()); local
219 if (textNode->wholeText() == newVisibleValue)
222 textNode->replaceWholeText(newVisibleValue);
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
H A DTextPrompt.js576 var textNode = document.createTextNode(text); variable
577 this.autoCompleteElement.parentNode.replaceChild(textNode, this.autoCompleteElement);
581 finalSelectionRange.setStart(textNode, text.length);
582 finalSelectionRange.setEnd(textNode, text.length);
/external/chromium_org/third_party/WebKit/Source/web/tests/
H A DTextFinderTest.cpp70 Node* textNode = document().body()->firstChild(); local
81 EXPECT_EQ(textNode, activeMatch->startContainer());
83 EXPECT_EQ(textNode, activeMatch->endContainer());
90 EXPECT_EQ(textNode, activeMatch->startContainer());
92 EXPECT_EQ(textNode, activeMatch->endContainer());
99 EXPECT_EQ(textNode, activeMatch->startContainer());
101 EXPECT_EQ(textNode, activeMatch->endContainer());
112 EXPECT_EQ(textNode, activeMatch->startContainer());
114 EXPECT_EQ(textNode, activeMatch->endContainer());
121 EXPECT_EQ(textNode, activeMatc
244 Node* textNode = document().body()->firstChild(); local
295 Node* textNode = document().body()->firstChild(); local
317 Node* textNode = document().body()->firstChild(); local
339 Node* textNode = document().body()->firstChild(); local
[all...]
H A DPrerenderingTest.cpp228 WebNode textNode = consoleListItem.firstChild(); local
229 ASSERT(textNode.nodeName() == "#text");
231 return textNode.nodeValue().utf8().data();
/external/apache-xml/src/main/java/org/apache/xml/utils/
H A DDOMHelper.java142 * @param textNode A text node from the source tree.
148 public boolean shouldStripSourceNode(Node textNode) argument
152 // return (null == m_envSupport) ? false : m_envSupport.shouldStripSourceNode(textNode);
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DDOMEditor.cpp296 ReplaceWholeTextAction(Text* textNode, const String& text) argument
298 , m_textNode(textNode)
446 bool DOMEditor::replaceWholeText(Text* textNode, const String& text, ExceptionState& exceptionState) argument
448 return m_history->perform(adoptRefWillBeNoop(new ReplaceWholeTextAction(textNode, text)), exceptionState);
507 bool DOMEditor::replaceWholeText(Text* textNode, const String& text, ErrorString* errorString) argument
510 bool result = replaceWholeText(textNode, text, exceptionState);
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DSelectorChecker.cpp571 Text* textNode = toText(n); local
572 if (!textNode->data().isEmpty()) {
/external/chromium_org/third_party/sfntly/cpp/src/test/tinyxml/
H A Dtinyxmlparser.cpp1192 TiXmlText* textNode = new TiXmlText( "" ); local
1194 if ( !textNode )
1201 p = textNode->Parse( p, data, encoding );
1207 p = textNode->Parse( pWithWhiteSpace, data, encoding );
1210 if ( !textNode->Blank() )
1211 LinkEndChild( textNode );
1213 delete textNode;
/external/sfntly/cpp/src/test/tinyxml/
H A Dtinyxmlparser.cpp1192 TiXmlText* textNode = new TiXmlText( "" ); local
1194 if ( !textNode )
1201 p = textNode->Parse( p, data, encoding );
1207 p = textNode->Parse( pWithWhiteSpace, data, encoding );
1210 if ( !textNode->Blank() )
1211 LinkEndChild( textNode );
1213 delete textNode;
/external/tinyxml/
H A Dtinyxmlparser.cpp1147 TiXmlText* textNode = new TiXmlText( "" ); local
1149 if ( !textNode )
1157 p = textNode->Parse( p, data, encoding );
1163 p = textNode->Parse( pWithWhiteSpace, data, encoding );
1166 if ( !textNode->Blank() )
1167 LinkEndChild( textNode );
1169 delete textNode;
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DHTMLTextFormControlElement.cpp882 Text* textNode = toText(position.anchorNode()); local
884 if (textNode->length() == 0 || offset == 0) {
888 if (offset <= textNode->length() && textNode->data()[offset - 1] == '\n') {
889 return Position(textNode, offset - 1);
922 Text* textNode = toText(node); local
923 size_t lastLineBreak = textNode->data().substring(0, isPivotNode ? pivotPosition.offsetInContainerNode() : textNode->length()).reverseFind('\n');
925 return Position(textNode, lastLineBreak + 1);
957 Text* textNode local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
H A DStyleResolver.cpp910 PassRefPtr<RenderStyle> StyleResolver::styleForText(Text* textNode) argument
912 ASSERT(textNode);
914 Node* parentNode = NodeRenderingTraversal::parent(textNode);

Completed in 911 milliseconds

12