Lines Matching refs:Element
303 const Element *elem = static_cast<const Element *>(node);
310 static PassRefPtr<Element> createFontElement(Document* document)
312 RefPtr<Element> fontNode = createHTMLElement(document, fontTag);
507 ApplyStyleCommand::ApplyStyleCommand(PassRefPtr<Element> element, bool removeOnly, EditAction editingAction)
508 : CompositeEditCommand(element->document())
515 , m_styledInlineElement(element)
627 startRange = TextIterator::rangeFromLocationAndLength(static_cast<Element*>(scope), startIndex, 0, true);
628 endRange = TextIterator::rangeFromLocationAndLength(static_cast<Element*>(scope), endIndex, 0, true);
719 RefPtr<HTMLElement> element;
724 element = static_cast<HTMLElement*>(node);
730 element = span.release();
737 CSSMutableStyleDeclaration* inlineStyleDecl = element->getInlineStyleDecl();
747 setNodeAttribute(element.get(), styleAttr, inlineStyleDecl->cssText());
750 removeNodeAttribute(element.get(), styleAttr);
752 if (isUnstyledStyleSpan(element.get()))
753 unstyledSpans.append(element.release());
834 Element* parent = static_cast<Element*>(n->parent());
858 StyledElement* element = static_cast<StyledElement*>(n);
859 RefPtr<CSSValue> unicodeBidi = computedStyle(element)->getPropertyCSSValue(CSSPropertyUnicodeBidi);
867 if (element->hasAttribute(dirAttr)) {
868 // FIXME: If this is a BDO element, we should probably just remove it if it has no
870 removeNodeAttribute(element, dirAttr);
872 RefPtr<CSSMutableStyleDeclaration> inlineStyle = element->getInlineStyleDecl()->copy();
875 setNodeAttribute(element, styleAttr, inlineStyle->cssText());
877 if (isUnstyledStyleSpan(element))
878 removeNodePreservingChildren(element);
905 // split the start node and containing element if the selection starts inside of it
913 // split the end node and containing element if the selection ends inside of it
1083 // Add to this element's inline style and skip over its contents.
1084 HTMLElement* element = static_cast<HTMLElement*>(node);
1085 RefPtr<CSSMutableStyleDeclaration> inlineStyle = element->getInlineStyleDecl()->copy();
1087 setNodeAttribute(element, styleAttr, inlineStyle->cssText());
1181 // Remove the element even if it has just style='' (this might be redundantly checked later too)
1288 // also stop at the unsplittable element to be consistent with other UAs
1305 HTMLElement *element = static_cast<HTMLElement *>(node);
1306 RefPtr<CSSMutableStyleDeclaration> style = element->inlineStyleDecl();
1363 HTMLElement *element = static_cast<HTMLElement *>(node);
1365 CSSMutableStyleDeclaration *decl = element->inlineStyleDecl();
1368 setNodeAttribute(element, styleAttr, cssText);
1596 Element *firstElement = static_cast<Element *>(first);
1597 Element *secondElement = static_cast<Element *>(second);
1648 Element *previousElement = static_cast<Element *>(previousSibling);
1649 Element *element = static_cast<Element *>(startNode);
1650 Node *startChild = element->firstChild();
1652 mergeIdenticalElements(previousElement, element);
1686 Element *nextElement = static_cast<Element *>(nextSibling);
1687 Element *element = static_cast<Element *>(endNode);
1690 mergeIdenticalElements(element, nextElement);
1703 void ApplyStyleCommand::surroundNodeRangeWithElement(Node* startNode, Node* endNode, PassRefPtr<Element> elementToInsert)
1708 RefPtr<Element> element = elementToInsert;
1710 insertNodeBefore(element, startNode);
1717 appendNode(node, element);
1724 Node* nextSibling = element->nextSibling();
1725 Node* previousSibling = element->previousSibling();
1727 && areIdenticalElements(element.get(), static_cast<Element*>(nextSibling)))
1728 mergeIdenticalElements(element, static_cast<Element*>(nextSibling));
1733 && areIdenticalElements(static_cast<Element*>(previousSibling), static_cast<Element*>(mergedElement)))
1734 mergeIdenticalElements(static_cast<Element*>(previousSibling), static_cast<Element*>(mergedElement));
1794 RefPtr<Element> fontElement = createFontElement(document());
1797 // We only want to insert a font element if it will end up changing the style of the
1814 RefPtr<Element> styleElement = createStyleSpanElement(document());