Lines Matching refs:Element
113 void CompositeEditCommand::applyStyledElement(PassRefPtr<Element> element)
115 applyCommandToComposite(ApplyStyleCommand::create(element, false));
118 void CompositeEditCommand::removeStyledElement(PassRefPtr<Element> element)
120 applyCommandToComposite(ApplyStyleCommand::create(element, true));
144 Element* parent = refChild->parentElement();
170 appendNode(insertChild, static_cast<Element*>(refChild));
184 void CompositeEditCommand::appendNode(PassRefPtr<Node> node, PassRefPtr<Element> parent)
263 void CompositeEditCommand::splitElement(PassRefPtr<Element> element, PassRefPtr<Node> atChild)
265 applyCommandToComposite(SplitElementCommand::create(element, atChild));
268 void CompositeEditCommand::mergeIdenticalElements(PassRefPtr<Element> prpFirst, PassRefPtr<Element> prpSecond)
270 RefPtr<Element> first = prpFirst;
271 RefPtr<Element> second = prpSecond;
280 void CompositeEditCommand::wrapContentsInDummySpan(PassRefPtr<Element> element)
282 applyCommandToComposite(WrapContentsInDummySpanCommand::create(element));
378 void CompositeEditCommand::removeNodeAttribute(PassRefPtr<Element> element, const QualifiedName& attribute)
380 setNodeAttribute(element, attribute, AtomicString());
383 void CompositeEditCommand::setNodeAttribute(PassRefPtr<Element> element, const QualifiedName& attribute, const AtomicString& value)
385 applyCommandToComposite(SetNodeAttributeCommand::create(element, attribute, value));
575 PassRefPtr<Node> CompositeEditCommand::appendBlockPlaceholder(PassRefPtr<Element> container)
601 PassRefPtr<Node> CompositeEditCommand::addBlockPlaceholderIfNeeded(Element* container)
637 RefPtr<Element> paragraphElement = createDefaultParagraphElement(document());
671 // If the block is the root editable element, always move content to a new block,
672 // since it is illegal to modify attributes on the root editable element for editing.
674 // If the block is the root editable element and it contains no visible content, create a new
712 applyStyledElement(static_cast<Element*>(anchorNode));
745 void CompositeEditCommand::cloneParagraphUnderNewElement(Position& start, Position& end, Node* outerNode, Element* blockElement)
765 appendNode(child, static_cast<Element *>(lastNode.get()));
833 // The blockElement parameter is the element to move the paragraph to,
834 // outerNode is the top element of the paragraph hierarchy.
836 void CompositeEditCommand::moveParagraphWithClones(const VisiblePosition& startOfParagraphToMove, const VisiblePosition& endOfParagraphToMove, Element* blockElement, Node* outerNode)
860 // Add a br if pruning an empty block level element caused a collapse. For example:
954 // Add a br if pruning an empty block level element caused a collapse. For example:
1010 RefPtr<Element> newBlock = 0;
1018 splitElement(static_cast<Element*>(blockEnclosingList), listNode);
1032 splitElement(static_cast<Element*>(listNode), emptyListItem);
1035 // Because we have splitted the element, emptyListItem is the first element in the list node.
1036 // i.e. insert newBlock before ul or ol whose first element is emptyListItem
1184 applyCommandToComposite(SplitElementCommand::create(static_cast<Element*>(node->parent()), node));
1187 splitElement(static_cast<Element*>(end), node);
1193 PassRefPtr<Element> createBlockPlaceholderElement(Document* document)
1195 RefPtr<Element> breakNode = document->createElement(brTag, false);