Home
last modified time | relevance | path

Searched refs:containerNode (Results 1 – 25 of 34) sorted by relevance

12

/external/webkit/Source/WebCore/editing/
DApplyBlockElementCommand.cpp154 Node* textNode = position.containerNode(); in isNewLineAtPosition()
170 || !position.containerNode() in renderStyleOfEnclosingTextNode()
171 || !position.containerNode()->isTextNode() in renderStyleOfEnclosingTextNode()
172 || !position.containerNode()->renderer()) in renderStyleOfEnclosingTextNode()
174 return position.containerNode()->renderer()->style(); in renderStyleOfEnclosingTextNode()
214 && end.offsetInContainerNode() < end.containerNode()->maxCharacterOffset()) { in rangeForParagraphSplittingTextNodesIfNeeded()
224 && end.offsetInContainerNode() < end.containerNode()->maxCharacterOffset()) { in rangeForParagraphSplittingTextNodesIfNeeded()
248 RefPtr<Node> containerNode = position.containerNode(); in endOfNextParagrahSplittingTextNodesIfNeeded() local
250 … || !isNewLineAtPosition(Position(containerNode.get(), 0, Position::PositionIsOffsetInAnchor))) in endOfNextParagrahSplittingTextNodesIfNeeded()
256 splitTextNode(static_cast<Text*>(containerNode.get()), 1); in endOfNextParagrahSplittingTextNodesIfNeeded()
[all …]
DInsertTextCommand.cpp61 if (!pos.containerNode()->isTextNode()) { in positionInsideTextNode()
85 …if (start.containerNode() != end.containerNode() || !start.containerNode()->isTextNode() || isTabS… in performTrivialReplace()
88 …replaceTextInNode(static_cast<Text*>(start.containerNode()), start.offsetInContainerNode(), end.of… in performTrivialReplace()
90 Position endPosition(start.containerNode(), start.offsetInContainerNode() + text.length()); in performTrivialReplace()
144 Position positionBeforeStartNode(positionInParentBeforeNode(startPosition.containerNode())); in input()
164 ASSERT(startPosition.containerNode()); in input()
165 ASSERT(startPosition.containerNode()->isTextNode()); in input()
168 Text* textNode = static_cast<Text*>(startPosition.containerNode()); in input()
DMoveSelectionCommand.cpp51 …&& selectionEnd.containerNode() == pos.containerNode() && selectionEnd.offsetInContainerNode() < p… in doApply()
55 …e() == Position::PositionIsOffsetInAnchor && selectionStart.containerNode() == pos.containerNode()) in doApply()
DVisibleSelection.cpp177 if (!s.containerNode() || !e.containerNode()) in toNormalizedRange()
212 searchRange->setStart(start.containerNode(), start.offsetInContainerNode(), ec); in makeSearchRange()
463 Node* baseEditableAncestor = lowestEditableAncestor(m_base.containerNode()); in adjustSelectionToAvoidCrossingEditingBoundaries()
498 Node* endEditableAncestor = lowestEditableAncestor(m_end.containerNode()); in adjustSelectionToAvoidCrossingEditingBoundaries()
505 …while (p.isNotNull() && !(lowestEditableAncestor(p.containerNode()) == baseEditableAncestor && !is… in adjustSelectionToAvoidCrossingEditingBoundaries()
508 …p = isAtomicNode(p.containerNode()) ? positionInParentBeforeNode(p.containerNode()) : previousVisu… in adjustSelectionToAvoidCrossingEditingBoundaries()
528 Node* startEditableAncestor = lowestEditableAncestor(m_start.containerNode()); in adjustSelectionToAvoidCrossingEditingBoundaries()
534 …while (p.isNotNull() && !(lowestEditableAncestor(p.containerNode()) == baseEditableAncestor && !is… in adjustSelectionToAvoidCrossingEditingBoundaries()
537 …p = isAtomicNode(p.containerNode()) ? positionInParentAfterNode(p.containerNode()) : nextVisuallyD… in adjustSelectionToAvoidCrossingEditingBoundaries()
557 if (baseEditableAncestor != lowestEditableAncestor(m_extent.containerNode())) in adjustSelectionToAvoidCrossingEditingBoundaries()
DVisiblePosition.cpp486 Node* node = position.containerNode(); in canonicalPosition()
543 Node* node = pos.containerNode(); in characterAfter()
547 Text* textNode = static_cast<Text*>(pos.containerNode()); in characterAfter()
635 …return Range::create(s.containerNode()->document(), s.containerNode(), s.offsetInContainerNode(), … in makeRange()
656 r->setStart(p.containerNode(), p.offsetInContainerNode(), code); in setStart()
666 r->setEnd(p.containerNode(), p.offsetInContainerNode(), code); in setEnd()
683 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node)) in isFirstVisiblePositionInNode()
695 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node)) in isLastVisiblePositionInNode()
DApplyStyleCommand.cpp1037 Node* pushDownStartContainer = pushDownStart.containerNode(); in removeInlineStyle()
1081 || s.offsetInContainerNode() >= lastOffsetInNode(s.containerNode())); in removeInlineStyle()
1124 …anchorType() == Position::PositionIsOffsetInAnchor && start.containerNode() == end.containerNode()) in splitTextAtStart()
1125 …newEnd = Position(end.containerNode(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextAtStart()
1138 …anchorType() == Position::PositionIsOffsetInAnchor && start.containerNode() == end.containerNode(); in splitTextAtEnd()
1153 …anchorType() == Position::PositionIsOffsetInAnchor && start.containerNode() == end.containerNode()) in splitTextElementAtStart()
1154 …newEnd = Position(end.containerNode(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextElementAtStart()
1167 …anchorType() == Position::PositionIsOffsetInAnchor && start.containerNode() == end.containerNode(); in splitTextElementAtEnd()
1187 Node* node = position.containerNode(); in isValidCaretPositionInTextNode()
1231 Node* startNode = start.containerNode(); in mergeStartWithPreviousIfIdentical()
[all …]
DReplaceSelectionCommand.cpp955 …if (!m_matchStyle && !enclosingList(insertionPos.containerNode()) && isStyleSpan(fragment.firstChi… in doApply()
956 …if (insertionPos.containerNode()->isTextNode() && insertionPos.offsetInContainerNode() && !inserti… in doApply()
957 …splitTextNodeContainingElement(static_cast<Text*>(insertionPos.containerNode()), insertionPos.offs… in doApply()
958 insertionPos = firstPositionInNode(insertionPos.containerNode()); in doApply()
963 if (insertionPos.containerNode() != nodeToSplitTo) in doApply()
1327 if (start.containerNode() != end.containerNode() || !start.containerNode()->isTextNode()) in performTrivialReplace()
1330 …replaceTextInNode(static_cast<Text*>(start.containerNode()), start.offsetInContainerNode(), end.of… in performTrivialReplace()
1332 …end = Position(start.containerNode(), start.offsetInContainerNode() + text.length(), Position::Pos… in performTrivialReplace()
DInsertParagraphSeparatorCommand.cpp165 …ode* startBlockNode = enclosingBlock(insertionPosition.parentAnchoredEquivalent().containerNode()); in doApply()
347 if (insertionPosition.containerNode() == startBlock) in doApply()
350 splitTreeToNode(insertionPosition.containerNode(), startBlock); in doApply()
DDeleteSelectionCommand.cpp322 …if (position.containerNode() == node->parentNode() && static_cast<unsigned>(position.offsetInConta… in updatePositionForNodeRemoval()
324 else if (node->contains(position.containerNode())) in updatePositionForNodeRemoval()
410 …if (position.anchorType() != Position::PositionIsOffsetInAnchor || position.containerNode() != nod… in updatePositionForTextRemoval()
609 …ent().deprecatedNode()->isDescendantOf(enclosingBlock(m_upstreamStart.containerNode())) || m_start… in mergeParagraphs()
Dhtmlediting.cpp338 Node* enclosingBlockNode = enclosingBlock(position.containerNode()); in directionOfEnclosingBlock()
554 …selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffs… in createRange()
556 …selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInCo… in createRange()
642 for (Node* n = p.containerNode(); n; n = n->parentNode()) { in highestEnclosingNodeOfType()
900 Node* node = pos.containerNode(); in positionOutsideTabSpan()
DCompositeEditCommand.cpp353 Node* tabSpan = tabSpanNode(pos.containerNode()); in positionOutsideTabSpan()
355 if (pos.offsetInContainerNode() <= caretMinOffset(pos.containerNode())) in positionOutsideTabSpan()
358 if (pos.offsetInContainerNode() >= caretMaxOffset(pos.containerNode())) in positionOutsideTabSpan()
361 …splitTextNodeContainingElement(static_cast<Text *>(pos.containerNode()), pos.offsetInContainerNode… in positionOutsideTabSpan()
415 Node* node = position.containerNode(); in canRebalance()
433 Node* node = position.containerNode(); in rebalanceWhitespaceAt()
Dvisible_units.cpp943 if (!position.containerNode() || !(startBlock = enclosingBlock(position.containerNode(), rule))) in startOfBlock()
952 if (!position.containerNode() || !(endBlock = enclosingBlock(position.containerNode(), rule))) in endOfBlock()
959 …ull() && enclosingBlock(a.deepEquivalent().containerNode()) == enclosingBlock(b.deepEquivalent().c… in inSameBlock()
DSpellingCorrectionController.cpp219 …correctionStartOffsetInParagraphAsRange->setEnd(startPositionOfRangeToBeReplaced.containerNode(), … in applyCorrectionPanelInfo()
386 Node* node = position.containerNode(); in respondToChangedSelection()
DSelectionController.cpp1274 if (r->node() == m_selection.start().containerNode()) in debugRenderer()
1276 else if (r->node() == m_selection.end().containerNode()) in debugRenderer()
1475 || start().containerNode() || !start().anchorNode()->shadowAncestorNode()); in isInPasswordField()
1476 Node* startNode = start().containerNode(); in isInPasswordField()
DTextCheckingHelper.cpp98 range->setEnd(position.containerNode(), position.computeOffsetInContainerNode(), ec); in offsetTo()
/external/webkit/Source/WebCore/page/
DDOMSelection.cpp104 return anchorPosition(visibleSelection()).containerNode(); in anchorNode()
122 return focusPosition(visibleSelection()).containerNode(); in focusNode()
140 return basePosition(visibleSelection()).containerNode(); in baseNode()
158 return extentPosition(visibleSelection()).containerNode(); in extentNode()
/external/webkit/Source/WebCore/rendering/
DRenderTextControl.cpp285 static inline void setContainerAndOffsetForRange(Node* node, int offset, Node*& containerNode, int&… in setContainerAndOffsetForRange() argument
288 containerNode = node; in setContainerAndOffsetForRange()
291 containerNode = node->parentNode(); in setContainerAndOffsetForRange()
/external/webkit/Source/WebCore/dom/
DPosition.h81 … Node* containerNode() const; // NULL for a before/after position anchored to a node with no parent
DRange.cpp98 …adoptRef(new Range(ownerDocument, start.containerNode(), start.computeOffsetInContainerNode(), end… in create()
1883 …setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffsetInContainerNo… in expand()
1884 …setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInContainerNode(), … in expand()
DPosition.cpp118 Node* Position::containerNode() const in containerNode() function in WebCore::Position
176 return Position(containerNode(), computeOffsetInContainerNode(), PositionIsOffsetInAnchor); in parentAnchoredEquivalent()
/external/webkit/Source/WebKit/haiku/WebCoreSupport/
DEditorClientHaiku.cpp253 Node* start = frame->selection()->start().containerNode(); in handleKeyboardEvent()
/external/webkit/Source/WebKit/qt/WebCoreSupport/
DEditorClientQt.cpp418 Node* start = frame->selection()->start().containerNode(); in handleKeyboardEvent()
/external/webkit/Source/WebKit/chromium/src/
DWebViewImpl.cpp1425 const Node* node = controller->base().containerNode(); in caretOrSelectionBounds()
1432 node = controller->extent().containerNode(); in caretOrSelectionBounds()
/external/webkit/Source/WebKit/mac/WebView/
DWebFrame.mm757 range->setStart(newStart.containerNode(), newStart.offsetInContainerNode(), exception);
758 range->setEnd(newStart.containerNode(), newStart.offsetInContainerNode(), exception);
/external/webkit/Source/WebKit/haiku/
DChangeLog145 Replaced the call to node() by a call to containerNode() because the returned node is

12