Home | History | Annotate | Download | only in dom

Lines Matching refs:Element

49 #include "Element.h"
168 Element* element = static_cast<Element*>(node);
169 pair<HashMap<String, size_t>::iterator, bool> result = perTagCount.add(element->tagName(), 1);
174 if (NamedNodeMap* attrMap = element->attributes(true)) {
248 printf(" Number of Element nodes: %zu\n", elementNodes);
262 printf("Element tag name distibution:\n");
671 static_cast<Element*>(node.get())->normalizeAttributes();
1059 // Element::setPrefix() and Attr::setPrefix()
1118 // restriction, so that e.g. creating an element with the Option()
1174 // restriction, so that e.g. creating an element with the Option()
1318 // Avoid an O(n^2) problem with this function by not checking for nextRenderer() when the parent element hasn't even
1422 return document()->styleSelector()->styleForElement(static_cast<Element*>(this), 0, allowSharing);
1469 // We allow selections to begin within an element that has -webkit-user-select: none set,
1470 // but if the element is draggable then dragging should take priority over selection.
1482 // but the actual shadow tree element - as main difference to the HTML forms
1528 Element *Node::enclosingBlockFlowElement() const
1532 return static_cast<Element *>(n);
1539 return static_cast<Element *>(n);
1544 Element *Node::enclosingInlineElement() const
1552 return static_cast<Element *>(n);
1556 return static_cast<Element *>(n);
1564 Element* Node::rootEditableElement() const
1566 Element* result = 0;
1569 result = static_cast<Element*>(n);
1642 PassRefPtr<Element> Node::querySelector(const String& selectors, ExceptionCode& ec)
1669 Element* element = document()->getElementById(querySelectorList.first()->m_value);
1670 if (element && (isDocumentNode() || element->isDescendantOf(this)) && selectorChecker.checkSelector(querySelectorList.first(), element))
1671 return element;
1678 Element* element = static_cast<Element*>(n);
1680 if (selectorChecker.checkSelector(selector, element))
1681 return element;
1784 const Element* elem = static_cast<const Element*>(this);
1800 if (Element* ancestor = ancestorElement())
1806 if (Element* de = static_cast<const Document*>(this)->documentElement())
1821 if (Element* ancestor = ancestorElement())
1837 return lookupNamespacePrefix(namespaceURI, static_cast<const Element *>(this));
1839 if (Element* de = static_cast<const Document*>(this)->documentElement())
1854 if (Element* ancestor = ancestorElement())
1870 const Element *elem = static_cast<const Element *>(this);
1894 if (Element* ancestor = ancestorElement())
1899 if (Element* de = static_cast<const Document*>(this)->documentElement())
1916 if (Element* ancestor = ancestorElement())
1922 String Node::lookupNamespacePrefix(const AtomicString &_namespaceURI, const Element *originalElement) const
1943 if (Element* ancestor = ancestorElement())
2027 Element* Node::ancestorElement() const
2032 return static_cast<Element*>(n);
2078 // when comparing two attributes of the same element, and inserting or removing additional attributes might change
2146 Element *parent = ancestorElement();
2161 Element *parent = ancestorElement();
2174 String attr = static_cast<const Element*>(node)->getAttribute(name);
2342 // For imagemaps, the enclosing link node is the associated area element not the image itself.
2423 SVGElement* element = static_cast<SVGElement*>(node);
2424 if (!element->isStyled())
2427 SVGStyledElement* styledElement = static_cast<SVGStyledElement*>(element);
2460 // Add event listener to regular DOM element
2464 // Add event listener to all shadow tree DOM element instances
2509 // Remove event listener from regular DOM element
2513 // Remove event listener from all shadow tree DOM element instances
2597 // Spec: The event handling for the non-exposed tree works as if the referenced element had been textually included
2598 // as a deeply cloned child of the 'use' element, except that events are dispatched to the SVGElementInstance objects
2824 // or if the element is default-handled by the DOM. Otherwise we let it just