Lines Matching refs:Element
531 m_scriptsToExecuteSoon[i].first->element()->deref(); // Balances ref() in executeScriptSoon().
628 // Invalidate the document element we have cached in case it was replaced.
638 m_documentElement = static_cast<Element*>(n);
641 PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionCode& ec)
739 Element* oldElement = static_cast<Element*>(importedNode);
740 RefPtr<Element> newElement = createElementNS(oldElement->namespaceURI(), oldElement->tagQName().toString(), ec);
864 PassRefPtr<Element> Document::createElement(const QualifiedName& qName, bool createdByParser)
866 RefPtr<Element> e;
887 e = Element::create(qName, document());
898 PassRefPtr<Element> Document::createElementNS(const String& namespaceURI, const String& qualifiedName, ExceptionCode& ec)
913 Element* Document::getElementById(const AtomicString& elementId) const
920 Element* element = m_elementsById.get(elementId.impl());
921 if (element)
922 return element;
928 element = static_cast<Element*>(n);
929 if (element->hasID() && element->getAttribute(element->idAttributeName()) == elementId) {
931 m_elementsById.set(elementId.impl(), element);
932 return element;
1009 Element* Document::elementFromPoint(int x, int y) const
1036 return static_cast<Element*>(n);
1083 void Document::addElementById(const AtomicString& elementId, Element* element)
1085 typedef HashMap<AtomicStringImpl*, Element*>::iterator iterator;
1089 element);
1109 void Document::removeElementById(const AtomicString& elementId, Element* element)
1113 if (m_elementsById.get(elementId.impl()) == element)
1119 Element* Document::getElementByAccessKey(const String& key) const
1127 Element* element = static_cast<Element*>(n);
1128 const AtomicString& accessKey = element->getAttribute(accesskeyAttr);
1130 m_elementsByAccessKey.set(accessKey.impl(), element);
1202 void Document::setTitle(const String& title, Element* titleElement)
1219 // Only allow the first title element to change the title -- others have no effect.
1234 void Document::removeTitle(Element* titleElement)
1242 // Update title based on first title element in the head, if one exists.
1459 if (Element* oe = ownerElement())
1746 // try to prefer a FRAMESET element over BODY
1939 // (b) Only schedule layout once we have a body element.
2038 // first the value of the href attribute of the HTML BASE element if any, and the value of the documentURI attribute
2414 // (One Element and one DocumentType.)
2662 // Processing instruction with reference to an element in this document - e.g.
2663 // <?xml-stylesheet href="#mystyle">, with the element
2666 Element* elem = getElementById(pi->localHref().impl());
2685 Element* e = static_cast<Element*>(n);
2689 // <LINK> element
2719 // <STYLE> element
2843 static_cast<Element*>(oldFocusedNode.get())->dispatchFormControlChangeEvent();
2948 void Document::setCSSTarget(Element* n)
3200 CSSStyleDeclaration* Document::getOverrideStyle(Element*, const String&)
3205 Element* Document::ownerElement() const
3518 HashSet<Element*>::iterator end = m_documentActivationCallbackElements.end();
3519 for (HashSet<Element*>::iterator i = m_documentActivationCallbackElements.begin(); i != end; ++i)
3525 HashSet<Element*>::iterator end = m_documentActivationCallbackElements.end();
3526 for (HashSet<Element*>::iterator i = m_documentActivationCallbackElements.begin(); i != end; ++i)
3535 void Document::registerForDocumentActivationCallbacks(Element* e)
3540 void Document::unregisterForDocumentActivationCallbacks(Element* e)
3547 HashSet<Element*>::iterator end = m_mediaVolumeCallbackElements.end();
3548 for (HashSet<Element*>::iterator i = m_mediaVolumeCallbackElements.begin(); i != end; ++i)
3552 void Document::registerForMediaVolumeCallbacks(Element* e)
3557 void Document::unregisterForMediaVolumeCallbacks(Element* e)
4153 Element *element;
4154 while ((element = doc->ownerElement()))
4155 doc = element->document();
4298 typedef ListHashSet<Element*>::const_iterator Iterator;
4301 Element* e = *it;
4621 Element* element = static_cast<Element*>(node);
4622 if (element->isFocusable())
4623 element->updateFocusAppearance(m_updateFocusAppearanceRestoresSelection);
4635 scripts[i].first->element()->deref(); // Balances ref() in executeScriptSoon().
4643 Element* element = data->element();
4644 ASSERT(element);
4645 ASSERT(element->document() == this);
4646 ASSERT(element->inDocument());
4649 element->ref(); // Balanced by deref()s in executeScriptSoonTimerFired() and ~Document().
4831 Element* Document::findAnchor(const String& name)
4835 if (Element* element = getElementById(name))
4836 return element;