Home
last modified time | relevance | path

Searched refs:startNode (Results 1 – 25 of 31) sorted by relevance

12

/external/webkit/WebCore/editing/
DBreakBlockquoteCommand.cpp60 Node* startNode = pos.node(); in doApply() local
63 for (Node *node = startNode->parentNode(); node; node = node->parentNode()) { in doApply()
86 if (startNode->isTextNode()) { in doApply()
87 Text* textNode = static_cast<Text*>(startNode); in doApply()
89 startNode = startNode->traverseNextNode(); in doApply()
90 ASSERT(startNode); in doApply()
94 startNode = startNode->traverseNextNode(); in doApply()
95 ASSERT(startNode); in doApply()
99 if (!startNode->isDescendantOf(topBlockquote)) { in doApply()
100 setEndingSelection(Selection(VisiblePosition(Position(startNode, 0)))); in doApply()
[all …]
DInsertParagraphSeparatorCommand.cpp156 Node *startNode = pos.node(); in doApply() local
234 startNode = pos.node(); in doApply()
238 if (startNode != startBlock) { in doApply()
239 for (Element* n = startNode->parentElement(); n && n != startBlock; n = n->parentElement()) in doApply()
255 if (startNode->isTextNode()) { in doApply()
256 Text *textNode = static_cast<Text *>(startNode); in doApply()
260 pos = Position(startNode, 0); in doApply()
289 if (startNode != startBlock) { in doApply()
290 Node *n = startNode; in doApply()
291 if (pos.offset() >= caretMaxOffset(startNode)) in doApply()
[all …]
DDeleteSelectionCommand.cpp402 Node* startNode = m_upstreamStart.node(); in handleGeneralDelete() local
405 …if (startNode == m_startBlock && startOffset == 0 && canHaveChildrenForEditing(startNode) && !star… in handleGeneralDelete()
407 startNode = startNode->traverseNextNode(); in handleGeneralDelete()
410 if (startOffset >= caretMaxOffset(startNode) && startNode->isTextNode()) { in handleGeneralDelete()
411 Text *text = static_cast<Text *>(startNode); in handleGeneralDelete()
412 if (text->length() > (unsigned)caretMaxOffset(startNode)) in handleGeneralDelete()
413 … deleteTextFromNode(text, caretMaxOffset(startNode), text->length() - caretMaxOffset(startNode)); in handleGeneralDelete()
416 if (startOffset >= maxDeepOffset(startNode)) { in handleGeneralDelete()
417 startNode = startNode->traverseNextSibling(); in handleGeneralDelete()
422 if (!startNode) in handleGeneralDelete()
[all …]
Dvisible_units.cpp299 Node *startNode; in startPositionForLine() local
308 startNode = startRenderer->element(); in startPositionForLine()
309 if (startNode) in startPositionForLine()
321 VisiblePosition visPos = VisiblePosition(startNode, startOffset, DOWNSTREAM); in startPositionForLine()
674 Node *startNode = p.node(); in startOfParagraph() local
676 if (!startNode) in startOfParagraph()
679 if (startNode->renderer() in startOfParagraph()
680 && ((startNode->renderer()->isTable() && !startNode->renderer()->isInline()) in startOfParagraph()
681 || startNode->renderer()->isHR()) in startOfParagraph()
682 && p.offset() == maxDeepOffset(startNode)) in startOfParagraph()
[all …]
DApplyStyleCommand.cpp539 Node *startNode = start.node(); in applyRelativeFontStyleChange() local
540 …if (startNode->isTextNode() && start.offset() >= caretMaxOffset(startNode)) // Move out of text no… in applyRelativeFontStyleChange()
541 startNode = startNode->traverseNextNode(); in applyRelativeFontStyleChange()
546 for (Node *node = startNode; node != beyondEnd; node = node->traverseNextNode()) in applyRelativeFontStyleChange()
553 for (Node* node = startNode; node != beyondEnd; node = node->traverseNextNode()) { in applyRelativeFontStyleChange()
1322 Node *startNode = start.node() == end.node() ? prevNode : start.node(); in splitTextAtEndIfNeeded() local
1323 ASSERT(startNode); in splitTextAtEndIfNeeded()
1324 … updateStartEnd(Position(startNode, start.offset()), Position(prevNode, caretMaxOffset(prevNode))); in splitTextAtEndIfNeeded()
1351 Node *startNode = start.node() == end.node() ? prevNode : start.node(); in splitTextElementAtEndIfNeeded() local
1352 ASSERT(startNode); in splitTextElementAtEndIfNeeded()
[all …]
DModifySelectionListLevel.cpp91 void ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore(Node* startNode, Node* endNode, … in insertSiblingNodeRangeBefore() argument
93 Node* node = startNode; in insertSiblingNodeRangeBefore()
106 void ModifySelectionListLevelCommand::insertSiblingNodeRangeAfter(Node* startNode, Node* endNode, N… in insertSiblingNodeRangeAfter() argument
108 Node* node = startNode; in insertSiblingNodeRangeAfter()
122 void ModifySelectionListLevelCommand::appendSiblingNodeRange(Node* startNode, Node* endNode, Elemen… in appendSiblingNodeRange() argument
124 Node* node = startNode; in appendSiblingNodeRange()
DModifySelectionListLevel.h40 void appendSiblingNodeRange(Node* startNode, Node* endNode, Element* newParent);
41 void insertSiblingNodeRangeBefore(Node* startNode, Node* endNode, Node* refNode);
42 void insertSiblingNodeRangeAfter(Node* startNode, Node* endNode, Node* refNode);
DTextIterator.cpp780 Node* startNode = r->startContainer(); in SimplifiedBackwardsTextIterator() local
781 if (!startNode) in SimplifiedBackwardsTextIterator()
787 if (!startNode->offsetInCharacters()) { in SimplifiedBackwardsTextIterator()
788 if (startOffset >= 0 && startOffset < static_cast<int>(startNode->childNodeCount())) { in SimplifiedBackwardsTextIterator()
789 startNode = startNode->childNode(startOffset); in SimplifiedBackwardsTextIterator()
805 m_startNode = startNode; in SimplifiedBackwardsTextIterator()
818 if (startOffset == 0 || !startNode->firstChild()) { in SimplifiedBackwardsTextIterator()
819 m_pastStartNode = startNode->previousSibling(); in SimplifiedBackwardsTextIterator()
820 while (!m_pastStartNode && startNode->parentNode()) { in SimplifiedBackwardsTextIterator()
821 startNode = startNode->parentNode(); in SimplifiedBackwardsTextIterator()
[all …]
DInsertListCommand.cpp216 Node* startNode = start.deepEquivalent().node(); in doApply() local
220 …if (previousList && (!previousList->hasTagName(listTag) || startNode->isDescendantOf(previousList)… in doApply()
222 …if (nextList && (!nextList->hasTagName(listTag) || startNode->isDescendantOf(nextList) || nextCell… in doApply()
Dmarkup.cpp590 static void appendMarkup(Vector<UChar>& result, Node* startNode, bool onlyIncludeChildren, Vector<N… in appendMarkup() argument
598 nodes->append(startNode); in appendMarkup()
600 appendStartMarkup(result,startNode, 0, DoNotAnnotateForInterchange, false, &namespaceHash); in appendMarkup()
603 if (!(startNode->document()->isHTMLDocument() && doesHTMLForbidEndTag(startNode))) in appendMarkup()
604 for (Node* current = startNode->firstChild(); current; current = current->nextSibling()) in appendMarkup()
609 appendEndMarkup(result, startNode); in appendMarkup()
748 Node* startNode = updatedRange->firstNode(); in createMarkup() local
759 startNode = visibleStart.next().deepEquivalent().node(); in createMarkup()
763 for (Node* n = startNode; n != pastEnd; n = next) { in createMarkup()
827 ASSERT(startNode->isDescendantOf(parent)); in createMarkup()
DEditor.cpp423 Node* startNode = range->editingStartPosition().node(); in fontForSelection() local
424 if (startNode) { in fontForSelection()
428 for (Node* n = startNode; n && n != pastEnd; n = n->traverseNextNode()) { in fontForSelection()
555 Node* startNode; in hasBidiSelection() local
557 startNode = m_frame->selection()->selection().start().downstream().node(); in hasBidiSelection()
559 if (enclosingBlock(startNode) != enclosingBlock(endNode)) in hasBidiSelection()
562 startNode = m_frame->selection()->selection().visibleStart().deepEquivalent().node(); in hasBidiSelection()
564 RenderObject* renderer = startNode->renderer(); in hasBidiSelection()
584 Node* startNode = enclosingNodeWithTag(m_frame->selection()->selection().start(), ulTag); in selectionUnorderedListState() local
586 if (startNode && endNode && startNode == endNode) in selectionUnorderedListState()
[all …]
DTypingCommand.cpp139 Node* startNode = selectionForInsertion.start().node(); in insertText() local
141 if (startNode && startNode->rootEditableElement() && !insertedTextIsComposition) { in insertText()
145 startNode->rootEditableElement()->dispatchEvent(evt, ec); in insertText()
DSelectionController.cpp1141 Node* startNode = start().node(); in isInPasswordField() local
1142 if (!startNode) in isInPasswordField()
1145 startNode = startNode->shadowAncestorNode(); in isInPasswordField()
1146 if (!startNode) in isInPasswordField()
1149 if (!startNode->hasTagName(inputTag)) in isInPasswordField()
1152 return static_cast<HTMLInputElement*>(startNode)->inputType() == HTMLInputElement::PASSWORD; in isInPasswordField()
DReplaceSelectionCommand.cpp950 … Node* startNode = positionAtStartOfInsertedContent().deepEquivalent().downstream().node(); in doApply() local
951 if (startNode->isTextNode()) { in doApply()
952 Text* text = static_cast<Text*>(startNode); in doApply()
958 insertNodeBefore(node, startNode); in doApply()
/external/webkit/WebCore/dom/
DPosition.cpp317 Node* startNode = node(); in upstream() local
318 if (!startNode) in upstream()
322 Node* boundary = enclosingVisualBoundary(startNode); in upstream()
325 bool startEditable = startNode->isContentEditable(); in upstream()
326 Node* lastNode = startNode; in upstream()
368 if (currentNode != startNode) { in upstream()
429 Node* startNode = node(); in downstream() local
430 if (!startNode) in downstream()
434 Node* boundary = enclosingVisualBoundary(startNode); in downstream()
437 bool startEditable = startNode->isContentEditable(); in downstream()
[all …]
/external/icu4c/common/
Drbbitblb.cpp439 RBBINode *startNode; in calcChainedFollowPos() local
441 startNode = (RBBINode *)matchStartNodes->elementAt(startNodeIx); in calcChainedFollowPos()
442 if (startNode->fType != RBBINode::leafChar) { in calcChainedFollowPos()
446 if (endNode->fVal == startNode->fVal) { in calcChainedFollowPos()
454 setAdd(endNode->fFollowPos, startNode->fFollowPos); in calcChainedFollowPos()
498 RBBINode *startNode; in bofFixup() local
501 startNode = (RBBINode *)matchStartNodes->elementAt(startNodeIx); in bofFixup()
502 if (startNode->fType != RBBINode::leafChar) { in bofFixup()
506 if (startNode->fVal == bofNode->fVal) { in bofFixup()
512 setAdd(bofNode->fFollowPos, startNode->fFollowPos); in bofFixup()
/external/webkit/WebCore/inspector/front-end/
Dutilities.js112 var startNode;
124 if (!startNode)
125 startNode = stayWithinNode;
133 startNode = node;
140 if (startNode)
146 if (!startNode) {
147 startNode = stayWithinNode;
151 startNode = this;
191 result.setStart(startNode, startOffset);
/external/srec/tools/make_ve_grammar/
Dmake_ve_grammar.c99 nodeID startNode = 0; in main() local
205 fprintf(pFile_PCLG,"%d\t%d\thmm%d_#sil#\t-pau-\n", startNode, pauEndNode, i); in main()
/external/webkit/WebKit/win/Interfaces/
DIWebHTMLRepresentation.idl62 …- (NSAttributedString *)attributedStringFrom:(DOMNode *)startNode startOffset:(int)startOffset to:…
64 …HRESULT attributedStringFromDOMNodes([in] IDOMNode* startNode, [in] int startOffset, [in] IDOMNode…
/external/webkit/WebKit/mac/WebView/
DWebHTMLRepresentation.h55 - (NSAttributedString *)attributedStringFrom:(DOMNode *)startNode startOffset:(int)startOffset to:(…
DWebHTMLRepresentation.mm260 - (NSAttributedString *)attributedStringFrom:(DOMNode *)startNode startOffset:(int)startOffset to:(…
262 …tedString _web_attributedStringFromRange:Range::create([startNode _node]->document(), [startNode _…
DWebFrame.mm676 Node *startNode = [[range startContainer] _node];
678 if (startNode && startNode->renderer()) {
679 RenderLayer *layer = startNode->renderer()->enclosingLayer();
/external/webkit/WebKit/win/
DWebHTMLRepresentation.h61 /* [in] */ IDOMNode* startNode,
/external/webkit/WebKit/android/jni/
DWebViewCore.cpp1377 WebCore::Node* startNode = node; in getSelection() local
1389 if (node == startNode) { in getSelection()
/external/webkit/WebCore/
DChangeLog-2005-08-2321793 Check for nil startNode, not just nil renderer.
35433 (DOM::RangeImpl::startNode): Added check for nil start container and use offsetInCharacters.
38908 * khtml/xml/dom2_rangeimpl.h: Make startNode and pastEndNode public.
38913 (NodeImpl::recursive_toHTMLWithOptions): Rewrite loop, using startNode and pastEndNode,
44095 * khtml/xml/dom2_rangeimpl.h: Added private startNode() and pastEndNode() functions.
44097 … (DOM::RangeImpl::toString): Rewrote to use startNode(), pastEndNode(), and traverseNextNode().
44101 … (DOM::RangeImpl::startNode): Added. Started with code extracted from checkDeleteExtract, but then
57974 … to get at a child node. We don't want to set startNode or endNode to nil in any case. If the end

12