Lines Matching refs:newElement
326 static inline void handleElementNamespaces(Element* newElement, const QXmlStreamNamespaceDeclarations &ns,
333 newElement->setAttributeNS("http://www.w3.org/2000/xmlns/", namespaceQName, namespaceURI, ec, scriptingPermission);
339 static inline void handleElementAttributes(Element* newElement, const QXmlStreamAttributes &attrs, ExceptionCode& ec,
348 newElement->setAttributeNS(attrURI, attrQName, attrValue, ec, scriptingPermission);
479 RefPtr<Element> newElement = m_doc->createElement(qName, true);
480 if (!newElement) {
508 handleElementNamespaces(newElement.get(), m_stream.namespaceDeclarations(), ec, m_scriptingPermission);
514 handleElementAttributes(newElement.get(), m_stream.attributes(), ec, m_scriptingPermission);
520 ScriptElement* scriptElement = toScriptElement(newElement.get());
524 if (!m_currentNode->addChild(newElement.get())) {
529 pushCurrentNode(newElement.get());
530 if (m_view && !newElement->attached())
531 newElement->attach();