Home | History | Annotate | Download | only in Api

Lines Matching refs:Element

66     the document element and can be accessed using
80 the first element only in the list returned.
89 instances point to the same element.
91 The element's attributes can be read using attribute() and modified with
95 toPlainText(); to XHTML using toInnerXml(). To include the element's tag in
99 setPlainText() and setInnerXml(). To replace the element itself and its
112 Constructs a null web element.
123 QWebElement::QWebElement(WebCore::Element* domElement)
156 Assigns \a other to this element and returns a reference to this element.
162 Element *otherElement = other.m_element;
173 Destroys the element. However, the underlying DOM element is not destroyed.
193 Returns true if the element is a null element; otherwise returns false.
217 Returns the first child element that matches the given CSS selector
235 Replaces the existing content of this element with \a text.
251 element.
265 Replaces the contents of this element as well as its own tag with
284 Returns this element converted to XML, including the start and the end
300 Replaces the contents of this element with \a markup. The string may
319 Returns the XML content between the element's start and end tags.
395 Returns true if this element has an attribute with the given \a name;
408 Returns true if this element has an attribute with the given \a name, in
421 Removes the attribute with the given \a name from this element.
435 element.
448 Returns true if the element has any attributes defined; otherwise returns
485 Returns true if the element has keyboard input focus; otherwise, returns false
499 Gives keyboard input focus to this element
512 Returns the geometry of this element, relative to its containing frame.
524 Returns the tag name of this element.
536 Returns the namespace prefix of the element. If the element has no\
547 Returns the local name of the element. If the element does not use
558 Returns the namespace URI of this element. If the element has no namespace
569 Returns the parent element of this elemen. If this element is the root
570 document element, a null element is returned.
580 Returns the element's first child.
591 Element* e = static_cast<Element*>(child);
598 Returns the element's last child.
609 Element* e = static_cast<Element*>(child);
616 Returns the element's next sibling.
627 Element* e = static_cast<Element*>(sib);
634 Returns the element's previous sibling.
645 Element* e = static_cast<Element*>(sib);
652 Returns the document which this element belongs to.
665 Returns the web frame which this element is a part of. If the element is a
666 null element, null is returned.
683 static bool setupScriptContext(WebCore::Element* element, JSC::JSValue& thisValue, ScriptState*& state, ScriptController*& scriptController)
685 if (!element)
688 Document* document = element->document();
704 thisValue = toJS(state, element);
713 Executes \a scriptSource with this element as \c this object.
748 the element, without respecting style inheritance and other CSS
795 // list of non-inline matched CSS rules for the element, looking for
798 // Get an array of matched CSS rules for the given element sorted
859 Returns the list of classes of this element.
890 Returns true if this element has a class with the given \a name; otherwise
900 Adds the specified class with the given \a name to the element.
913 Removes the specified class with the given \a name from the element.
942 Appends the given \a element as the element's last child.
944 If \a element is the child of another element, it is re-parented to this
945 element. If \a element is a child of this element, then its position in
948 Calling this function on a null element does nothing.
952 void QWebElement::appendInside(const QWebElement &element)
954 if (!m_element || element.isNull())
958 m_element->appendChild(element.m_element, exception);
962 Appends the result of parsing \a markup as the element's last child.
964 Calling this function on a null element does nothing.
984 Prepends \a element as the element's first child.
986 If \a element is the child of another element, it is re-parented to this
987 element. If \a element is a child of this element, then its position in
990 Calling this function on a null element does nothing.
994 void QWebElement::prependInside(const QWebElement &element)
996 if (!m_element || element.isNull())
1002 m_element->insertBefore(element.m_element, m_element->firstChild(), exception);
1004 m_element->appendChild(element.m_element, exception);
1008 Prepends the result of parsing \a markup as the element's first child.
1010 Calling this function on a null element does nothing.
1035 Inserts the given \a element before this element.
1037 If \a element is the child of another element, it is re-parented to the
1038 parent of this element.
1040 Calling this function on a null element does nothing.
1044 void QWebElement::prependOutside(const QWebElement &element)
1046 if (!m_element || element.isNull())
1053 m_element->parent()->insertBefore(element.m_element, m_element, exception);
1057 Inserts the result of parsing \a markup before this element.
1059 Calling this function on a null element does nothing.
1082 Inserts the given \a element after this element.
1084 If \a element is the child of another element, it is re-parented to the
1085 parent of this element.
1087 Calling this function on a null element does nothing.
1091 void QWebElement::appendOutside(const QWebElement &element)
1093 if (!m_element || element.isNull())
1101 m_element->parent()->appendChild(element.m_element, exception);
1103 m_element->parent()->insertBefore(element.m_element, m_element->nextSibling(), exception);
1107 Inserts the result of parsing \a markup after this element.
1109 Calling this function on a null element does nothing.
1135 Returns a clone of this element.
1150 Removes this element from the document and returns a reference to it.
1152 The element is still valid after removal, and can be inserted into other
1169 Removes this element from the document and makes it a null element.
1185 Removes all children from this element.
1207 HTMLElement* element = static_cast<HTMLElement*>(node.get());
1210 // never have children, so go one up. Get the parent element, and not
1212 if (element->endTagRequirement() == TagStatusForbidden)
1220 Encloses the contents of this element with \a element. This element becomes
1221 the child of the deepest descendant within \a element.
1227 void QWebElement::encloseContentsWith(const QWebElement &element)
1229 if (!m_element || element.isNull())
1232 RefPtr<Node> insertionPoint = findInsertionPoint(element.m_element);
1247 m_element->insertBefore(element.m_element, m_element->firstChild(), exception);
1249 m_element->appendChild(element.m_element, exception);
1253 Encloses the contents of this element with the result of parsing \a markup.
1254 This element becomes the child of the deepest descendant within \a markup.
1296 Encloses this element with \a element. This element becomes the child of
1297 the deepest descendant within \a element.
1301 void QWebElement::encloseWith(const QWebElement &element)
1303 if (!m_element || element.isNull())
1306 RefPtr<Node> insertionPoint = findInsertionPoint(element.m_element);
1311 // Keep reference to these two nodes before pulling out this element and
1322 parentNode->appendChild(element.m_element, exception);
1324 parentNode->insertBefore(element.m_element, siblingNode, exception);
1328 Encloses this element with the result of parsing \a markup. This element
1355 // Keep reference to these two nodes before pulling out this element and
1372 Replaces this element with \a element.
1378 void QWebElement::replace(const QWebElement &element)
1380 if (!m_element || element.isNull())
1383 appendOutside(element);
1388 Replaces this element with the result of parsing \a markup.
1411 QWebElement element(node);
1413 while (element.isNull() && node) {
1415 element = QWebElement(node);
1417 return element;
1423 Returns true if this element points to the same underlying DOM object as
1430 Returns true if this element points to a different underlying DOM object
1436 Render the element into \a painter .
1440 WebCore::Element* e = m_element;
1620 Returns the element at index position \a i in the collection.
1627 return QWebElement(static_cast<Element*>(n));
1633 Returns the element at the specified \a position in the collection.
1638 Returns the first element in the collection.
1645 Returns the last element in the collection.
1662 elements.append(QWebElement(static_cast<Element*>(n)));
1671 Returns an STL-style iterator pointing to the first element in the collection.
1679 Returns an STL-style iterator pointing to the imaginary element after the
1680 last element in the list.
1709 Returns the current element.
1724 Returns true if \a other points to a different element than this;
1733 The prefix ++ operator (\c{++it}) advances the iterator to the next element in the collection
1734 and returns an iterator to the new current element.
1746 The postfix ++ operator (\c{it++}) advances the iterator to the next element in the collection
1747 and returns an iterator to the previously current element.
1755 The prefix -- operator (\c{--it}) makes the preceding element current and returns an
1756 iterator to the new current element.
1768 The postfix -- operator (\c{it--}) makes the preceding element current and returns
1769 an iterator to the previously current element.
1791 Returns an iterator to the element at \a j positions forward from this iterator. If \a j
1800 Returns an iterator to the element at \a j positiosn backward from this iterator.
1810 and the element pointed to by this iterator.
1816 Returns true if the element pointed to by this iterator is less than the element pointed to
1823 Returns true if the element pointed to by this iterator is less than or equal to the
1824 element pointed to by the \a other iterator.
1830 Returns true if the element pointed to by this iterator is greater than the element pointed to
1837 Returns true if the element pointed to by this iterator is greater than or equal to the
1838 element pointed to by the \a other iterator.
1844 Returns an STL-style iterator pointing to the first element in the collection.
1852 Returns an STL-style iterator pointing to the imaginary element after the
1853 last element in the list.
1861 Returns an STL-style iterator pointing to the first element in the collection.
1869 Returns an STL-style iterator pointing to the imaginary element after the
1870 last element in the list.
1899 Returns the current element.
1914 Returns true if \a other points to a different element than this;
1923 The prefix ++ operator (\c{++it}) advances the iterator to the next element in the collection
1924 and returns an iterator to the new current element.
1936 The postfix ++ operator (\c{it++}) advances the iterator to the next element in the collection
1937 and returns an iterator to the previously current element.
1945 The prefix -- operator (\c{--it}) makes the preceding element current and returns an
1946 iterator to the new current element.
1958 The postfix -- operator (\c{it--}) makes the preceding element current and returns
1959 an iterator to the previously current element.
1981 Returns an iterator to the element at \a j positions forward from this iterator. If \a j
1990 Returns an iterator to the element at \a j positiosn backward from this iterator.
2000 and the element pointed to by this iterator.
2006 Returns true if the element pointed to by this iterator is less than the element pointed to
2013 Returns true if the element pointed to by this iterator is less than or equal to the
2014 element pointed to by the \a other iterator.
2020 Returns true if the element pointed to by this iterator is greater than the element pointed to
2027 Returns true if the element pointed to by this iterator is greater than or equal to the
2028 element pointed to by the \a other iterator.