/external/chromium_org/third_party/WebKit/Source/core/editing/ |
MoveSelectionCommand.cpp | 51 && selectionEnd.containerNode() == pos.containerNode() && selectionEnd.offsetInContainerNode() < pos.offsetInContainerNode()) { 55 if (selectionStart.anchorType() == Position::PositionIsOffsetInAnchor && selectionStart.containerNode() == pos.containerNode())
|
ApplyBlockElementCommand.cpp | 84 RefPtr<ContainerNode> startScope; 86 RefPtr<ContainerNode> endScope; 158 Node* textNode = position.containerNode(); 173 if (position.anchorType() != Position::PositionIsOffsetInAnchor || !position.containerNode() || !position.containerNode()->isTextNode()) 175 return position.containerNode()->renderStyle(); 187 isStartAndEndOnSameNode = renderStyleOfEnclosingTextNode(end) && start.containerNode() == end.containerNode(); 188 bool isStartAndEndOfLastParagraphOnSameNode = renderStyleOfEnclosingTextNode(m_endOfLastParagraph) && start.containerNode() == m_endOfLastParagraph.containerNode(); [all...] |
VisibleSelection.cpp | 189 if (!s.containerNode() || !e.containerNode()) 224 searchRange->setStart(start.containerNode(), start.offsetInContainerNode(), exceptionState); 474 ASSERT(currentPosition.containerNode()->treeScope() != treeScope); 476 if (Node* ancestor = treeScope.ancestorInThisScope(currentPosition.containerNode())) { 492 ASSERT(currentPosition.containerNode()->treeScope() != treeScope); 494 if (Node* ancestor = treeScope.ancestorInThisScope(currentPosition.containerNode())) { 515 m_extent = adjustPositionForEnd(m_end, m_start.containerNode()); 518 m_extent = adjustPositionForStart(m_start, m_end.containerNode()); 534 Node* baseEditableAncestor = lowestEditableAncestor(m_base.containerNode()); [all...] |
IndentOutdentCommand.cpp | 102 else if (enclosingList(start.containerNode())) 103 nodeToSplitTo = enclosingBlock(start.containerNode()); 110 RefPtr<Node> outerBlock = (start.containerNode() == nodeToSplitTo) ? start.containerNode() : splitTreeToNode(start.containerNode(), nodeToSplitTo); 117 if (outerBlock == start.containerNode()) 161 if (ContainerNode* splitPointParent = splitPoint->parentNode()) {
|
InsertParagraphSeparatorCommand.cpp | 166 RefPtr<Element> startBlock = enclosingBlock(insertionPosition.parentAnchoredEquivalent().containerNode()); 167 Node* listChildNode = enclosingListChild(insertionPosition.parentAnchoredEquivalent().containerNode()); 356 if (insertionPosition.anchorType() == Position::PositionIsOffsetInAnchor && insertionPosition.containerNode()->isTextNode()) { 357 RefPtr<Text> textNode = toText(insertionPosition.containerNode()); 393 if (insertionPosition.containerNode() == startBlock) 396 Node* splitTo = insertionPosition.containerNode(); 417 ASSERT(!positionAfterSplit.containerNode()->renderer() || positionAfterSplit.containerNode()->renderer()->style()->collapseWhiteSpace()); 420 insertTextIntoNode(toText(positionAfterSplit.containerNode()), 0, nonBreakingSpaceString());
|
InsertTextCommand.cpp | 67 if (!pos.containerNode()->isTextNode()) { 176 Position positionBeforeStartNode(positionInParentBeforeNode(startPosition.containerNode())); 196 ASSERT(startPosition.containerNode()); 197 ASSERT(startPosition.containerNode()->isTextNode()); 238 Node* node = insertPos.containerNode();
|
htmlediting.cpp | 76 TreeScope* commonScope = commonTreeScope(a.containerNode(), b.containerNode()); 82 Node* nodeA = commonScope->ancestorInThisScope(a.containerNode()); 84 bool hasDescendentA = nodeA != a.containerNode(); 87 Node* nodeB = commonScope->ancestorInThisScope(b.containerNode()); 89 bool hasDescendentB = nodeB != b.containerNode(); 189 Node* node = p.containerNode(); 333 Node* enclosingBlockNode = enclosingBlock(position.containerNode()); 431 Node* rootEditableElement = pos.containerNode()->rootEditableElement(); 446 Node* rootEditableElement = pos.containerNode()->rootEditableElement() [all...] |
TextInsertionBaseCommand.cpp | 63 if (Node* startNode = selectionForInsertion.start().containerNode()) {
|
TypingCommand.cpp | 464 if (granularity == CharacterGranularity && selectionToDelete.end().containerNode() == selectionToDelete.start().containerNode() 539 if (isRenderedTable(downstreamEnd.containerNode()) && downstreamEnd.computeOffsetInContainerNode() <= caretMinOffset(downstreamEnd.containerNode())) { 540 setEndingSelection(VisibleSelection(endingSelection().end(), positionAfterNode(downstreamEnd.containerNode()), DOWNSTREAM, endingSelection().isDirectional())); 557 if (extent.containerNode() != selectionToDelete.end().containerNode()) 561 if (selectionToDelete.start().containerNode() == selectionToDelete.end().containerNode()) 565 extent = Position(extent.containerNode(), extent.computeOffsetInContainerNode() + extraCharacters, Position::PositionIsOffsetInAnchor) [all...] |
markup.cpp | 401 ContainerNode* nextParent = next ? next->parentNode() : 0; 404 for (ContainerNode* parent = lastAncestorClosedOrSelf->parentNode(); parent && parent != nextParent; parent = parent->parentNode()) { 434 ContainerNode* table = commonAncestorBlock->parentNode(); 588 for (ContainerNode* ancestor = lastClosed->parentNode(); ancestor; ancestor = ancestor->parentNode()) { [all...] |
ApplyStyleCommand.cpp | [all...] |
ReplaceSelectionCommand.cpp | 120 Node* enclosingBlockNode = enclosingBlock(pos.containerNode()); 121 for (Position nextPosition = pos; nextPosition.containerNode() != enclosingBlockNode; pos = nextPosition) { 125 if (pos.containerNode()->nonShadowBoundaryParentNode()) 126 nextPosition = positionInParentAfterNode(pos.containerNode()); 129 || enclosingBlock(nextPosition.containerNode()) != enclosingBlockNode 226 ContainerNode* parent = node->nonShadowBoundaryParentNode(); 238 ContainerNode* parent = refNode->nonShadowBoundaryParentNode(); 498 ContainerNode* context = element->parentNode(); 771 ContainerNode* context = wrappingStyleSpan->parentNode(); [all...] |
VisiblePosition.cpp | 577 Node* node = position.containerNode(); 631 if (!pos.containerNode() || !pos.containerNode()->isTextNode()) 734 return Range::create(s.containerNode()->document(), s.containerNode(), s.offsetInContainerNode(), e.containerNode(), e.offsetInContainerNode()); 753 r->setStart(p.containerNode(), p.offsetInContainerNode(), exceptionState); 763 r->setEnd(p.containerNode(), p.offsetInContainerNode(), exceptionState); 780 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node)) 792 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node) [all...] |
DeleteSelectionCommand.cpp | 407 if (position.anchorType() != Position::PositionIsOffsetInAnchor || position.containerNode() != node) 435 RefPtr<ContainerNode> rootEditableElement = node->rootEditableElement(); 629 if (!mergeDestination.deepEquivalent().deprecatedNode() || (!mergeDestination.deepEquivalent().deprecatedNode()->isDescendantOf(enclosingBlock(m_upstreamStart.containerNode())) && (!mergeDestination.deepEquivalent().anchorNode()->firstChild() || !m_upstreamStart.containerNode()->firstChild())) || (m_startsAtEmptyLine && mergeDestination != startOfParagraphToMove)) { [all...] |
CompositeEditCommand.cpp | 345 ContainerNode* parent = refChild->parentNode(); 386 void CompositeEditCommand::appendNode(PassRefPtr<Node> node, PassRefPtr<ContainerNode> parent) 419 RefPtr<ContainerNode> parent = node->parentNode(); 521 if (start.containerNode() != end.containerNode() || !start.containerNode()->isTextNode() || isTabSpanTextNode(start.containerNode())) 568 Node* tabSpan = tabSpanNode(pos.containerNode()); 570 if (pos.offsetInContainerNode() <= caretMinOffset(pos.containerNode())) 573 if (pos.offsetInContainerNode() >= caretMaxOffset(pos.containerNode())) [all...] |
PlainTextRange.cpp | 30 #include "core/dom/ContainerNode.h" 60 PassRefPtr<Range> PlainTextRange::createRange(const ContainerNode& scope) const 65 PassRefPtr<Range> PlainTextRange::createRangeForSelection(const ContainerNode& scope) const 70 PassRefPtr<Range> PlainTextRange::createRangeFor(const ContainerNode& scope, GetRangeFor getRangeFor) const 81 TextIterator it(rangeOfContents(const_cast<ContainerNode*>(&scope)).get(), getRangeFor == ForSelection ? TextIteratorEmitsCharactersBetweenAllVisiblePositions : TextIteratorDefaultBehavior); 115 textRunRange->setEnd(runEnd.containerNode(), runEnd.computeOffsetInContainerNode(), ASSERT_NO_EXCEPTION);
|
InputMethodController.cpp | 164 if (start.containerNode() == m_compositionNode 165 && end.containerNode() == m_compositionNode
|
VisibleUnits.cpp | 769 if (!editableRoot->contains(visPos.deepEquivalent().containerNode())) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/page/ |
DOMSelection.cpp | 382 ContainerNode* container = shadowAncestor->parentOrShadowHostNode(); 474 ContainerNode* parentNode = n->parentNode(); 516 Node* containerNode = position.containerNode(); 517 Node* adjustedNode = m_treeScope->ancestorInThisScope(containerNode); 522 if (containerNode == adjustedNode) 523 return containerNode; 534 Node* containerNode = position.containerNode(); 535 Node* adjustedNode = m_treeScope->ancestorInThisScope(containerNode); [all...] |
TouchDisambiguation.cpp | 115 Node* containerNode = container->node(); 116 if (!containerNode) 118 if (!blackList.add(containerNode).isNewEntry)
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLTextFormControlElement.cpp | 66 Node::InsertionNotificationRequest HTMLTextFormControlElement::insertedInto(ContainerNode* insertionPoint) 335 range->setEnd(indexPosition.containerNode(), indexPosition.offsetInContainerNode(), ASSERT_NO_EXCEPTION); 418 static inline void setContainerAndOffsetForRange(Node* node, int offset, Node*& containerNode, int& offsetInContainer) 421 containerNode = node; 424 containerNode = node->parentNode(); 614 || position.containerNode() || !position.anchorNode()->shadowHost() 617 Node* container = position.containerNode();
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Position.h | 29 #include "core/dom/ContainerNode.h" 98 Node* containerNode() const; // NULL for a before/after position anchored to a node with no parent 134 Node* container = containerNode(); 196 static ContainerNode* findParent(const Node*);
|
Range.cpp | 105 return adoptRef(new Range(ownerDocument, start.containerNode(), start.computeOffsetInContainerNode(), end.containerNode(), end.computeOffsetInContainerNode())); 271 setStart(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), exceptionState); 277 setEnd(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), exceptionState); 383 ContainerNode* parentNode = refNode->parentNode(); 587 ContainerNode* parentNode = refNode->parentNode(); 878 for (ContainerNode* n = container->parentNode(); n && n != commonRoot; n = n->parentNode()) [all...] |
/external/chromium_org/third_party/WebKit/Tools/TestResultServer/static-dashboards/ |
timeline_explorer.js | 156 var containerNode = $('timeline-container'); 157 containerNode.style.height = graphHeight + 'px'; 158 containerNode.style.width = graphWidth + 'px'; 162 containerNode, 201 var containerNode = $('timeline-container'); 204 indicatorNode.style.height = containerNode.offsetHeight + 'px'; 205 containerNode.appendChild(indicatorNode);
|
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
AXObject.cpp | 841 Node* containerNode = visiblePos.deepEquivalent().containerNode(); 842 if (!containerNode->containsIncludingShadowDOM(node()) && !node()->containsIncludingShadowDOM(containerNode))
|