Home | History | Annotate | Download | only in Api

Lines Matching refs:m_element

143     , m_element(0)
152 , m_element(domElement)
154 if (m_element)
155 m_element->ref();
163 , m_element(0)
166 m_element = static_cast<HTMLElement*>(node);
167 m_element->ref();
176 , m_element(other.m_element)
178 if (m_element)
179 m_element->ref();
189 Element *otherElement = other.m_element;
192 if (m_element)
193 m_element->deref();
194 m_element = otherElement;
205 if (m_element)
206 m_element->deref();
211 return m_element == o.m_element;
216 return m_element != o.m_element;
224 return !m_element;
255 if (!m_element)
258 return QWebElement(m_element->querySelector(selectorQuery, exception).get());
270 if (!m_element || !m_element->isHTMLElement())
273 static_cast<HTMLElement*>(m_element)->setInnerText(text, exception);
286 if (!m_element || !m_element->isHTMLElement())
288 return static_cast<HTMLElement*>(m_element)->innerText();
302 if (!m_element || !m_element->isHTMLElement())
307 static_cast<HTMLElement*>(m_element)->setOuterHTML(markup, exception);
325 if (!m_element || !m_element->isHTMLElement())
328 return static_cast<HTMLElement*>(m_element)->outerHTML();
342 if (!m_element || !m_element->isHTMLElement())
347 static_cast<HTMLElement*>(m_element)->setInnerHTML(markup, exception);
364 if (!m_element || !m_element->isHTMLElement())
367 return static_cast<HTMLElement*>(m_element)->innerHTML();
378 if (!m_element)
381 m_element->setAttribute(name, value, exception);
393 if (!m_element)
396 m_element->setAttributeNS(namespaceUri, name, value, exception);
407 if (!m_element)
409 if (m_element->hasAttribute(name))
410 return m_element->getAttribute(name);
423 if (!m_element)
425 if (m_element->hasAttributeNS(namespaceUri, name))
426 return m_element->getAttributeNS(namespaceUri, name);
439 if (!m_element)
441 return m_element->hasAttribute(name);
452 if (!m_element)
454 return m_element->hasAttributeNS(namespaceUri, name);
464 if (!m_element)
467 m_element->removeAttribute(name, exception);
478 if (!m_element)
481 m_element->removeAttributeNS(namespaceUri, name, exception);
492 if (!m_element)
494 return m_element->hasAttributes();
504 if (!m_element)
508 const NamedNodeMap* const attrs = m_element->attributes(/* read only = */ true);
528 if (!m_element)
530 if (m_element->document())
531 return m_element == m_element->document()->focusedNode();
542 if (!m_element)
544 if (m_element->document() && m_element->isFocusable())
545 m_element->document()->setFocusedNode(m_element);
555 if (!m_element)
557 return m_element->getRect();
567 if (!m_element)
569 return m_element->tagName();
578 if (!m_element)
580 return m_element->prefix();
589 if (!m_element)
591 return m_element->localName();
600 if (!m_element)
602 return m_element->namespaceURI();
611 if (m_element)
612 return QWebElement(m_element->parentElement());
623 if (!m_element)
625 for (Node* child = m_element->firstChild(); child; child = child->nextSibling()) {
641 if (!m_element)
643 for (Node* child = m_element->lastChild(); child; child = child->previousSibling()) {
659 if (!m_element)
661 for (Node* sib = m_element->nextSibling(); sib; sib = sib->nextSibling()) {
677 if (!m_element)
679 for (Node* sib = m_element->previousSibling(); sib; sib = sib->previousSibling()) {
693 if (!m_element)
695 Document* document = m_element->document();
707 if (!m_element)
710 Document* document = m_element->document();
786 if (!setupScriptContext(m_element, thisValue, state, scriptController))
843 if (!m_element || !m_element->isStyledElement())
851 CSSStyleDeclaration* style = static_cast<StyledElement*>(m_element)->style();
868 Document* doc = m_element->document();
869 if (RefPtr<CSSRuleList> rules = doc->styleSelector()->styleRulesForElement(m_element, /*authorOnly*/ true)) {
885 if (!m_element || !m_element->isStyledElement())
890 RefPtr<CSSComputedStyleDeclaration> style = computedStyle(m_element, true);
912 if (!m_element || !m_element->isStyledElement())
916 CSSStyleDeclaration* style = static_cast<StyledElement*>(m_element)->style();
1002 if (!m_element || element.isNull())
1006 m_element->appendChild(element.m_element, exception);
1018 if (!m_element)
1021 if (!m_element->isHTMLElement())
1024 HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
1028 m_element->appendChild(fragment, exception);
1044 if (!m_element || element.isNull())
1049 if (m_element->hasChildNodes())
1050 m_element->insertBefore(element.m_element, m_element->firstChild(), exception);
1052 m_element->appendChild(element.m_element, exception);
1064 if (!m_element)
1067 if (!m_element->isHTMLElement())
1070 HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
1075 if (m_element->hasChildNodes())
1076 m_element->insertBefore(fragment, m_element->firstChild(), exception);
1078 m_element->appendChild(fragment, exception);
1094 if (!m_element || element.isNull())
1097 if (!m_element->parentNode())
1101 m_element->parentNode()->insertBefore(element.m_element, m_element, exception);
1113 if (!m_element)
1116 if (!m_element->parentNode())
1119 if (!m_element->isHTMLElement())
1122 HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
1126 m_element->parentNode()->insertBefore(fragment, m_element, exception);
1141 if (!m_element || element.isNull())
1144 if (!m_element->parentNode())
1148 if (!m_element->nextSibling())
1149 m_element->parentNode()->appendChild(element.m_element, exception);
1151 m_element->parentNode()->insertBefore(element.m_element, m_element->nextSibling(), exception);
1163 if (!m_element)
1166 if (!m_element->parentNode())
1169 if (!m_element->isHTMLElement())
1172 HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
1176 if (!m_element->nextSibling())
1177 m_element->parentNode()->appendChild(fragment, exception);
1179 m_elementm_element->nextSibling(), exception);
1191 if (!m_element)
1194 return QWebElement(m_element->cloneElementWithChildren().get());
1207 if (!m_element)
1211 m_element->remove(exception);
1223 if (!m_element)
1227 m_element->remove(exception);
1228 m_element->deref();
1229 m_element = 0;
1239 if (!m_element)
1242 m_element->removeAllChildren();
1279 if (!m_element || element.isNull())
1282 RefPtr<Node> insertionPoint = findInsertionPoint(element.m_element);
1290 for (RefPtr<Node> child = m_element->firstChild(); child;) {
1296 if (m_element->hasChildNodes())
1297 m_element->insertBefore(element.m_element, m_element->firstChild(), exception);
1299 m_element->appendChild(element.m_element, exception);
1310 if (!m_element)
1313 if (!m_element->parentNode())
1316 if (!m_element->isHTMLElement())
1319 HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
1333 for (RefPtr<Node> child = m_element->firstChild(); child;) {
1339 if (m_element->hasChildNodes())
1340 m_element->insertBefore(fragment, m_element->firstChild(), exception);
1342 m_element->appendChild(fragment, exception);
1353 if (!m_element || element.isNull())
1356 RefPtr<Node> insertionPoint = findInsertionPoint(element.m_element);
1365 Node* parent = m_element->parentNode();
1366 Node* siblingNode = m_element->nextSibling();
1369 insertionPoint->appendChild(m_element, exception);
1372 parent->appendChild(element.m_element, exception);
1374 parent->insertBefore(element.m_element, siblingNode, exception);
1385 if (!m_element)
1388 if (!m_element->parentNode())
1391 if (!m_element->isHTMLElement())
1394 HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
1409 Node* parent = m_element->parentNode();
1410 Node* siblingNode = m_element->nextSibling();
1413 insertionPoint->appendChild(m_element, exception);
1430 if (!m_element || element.isNull())
1446 if (!m_element)
1498 WebCore::Element* e = m_element;
1603 d = QExplicitlySharedDataPointer<QWebElementCollectionPrivate>(QWebElementCollectionPrivate::create(contextElement.m_element, query));