Index: Source/WebCore/dom/XMLDocumentParserQt.cpp |
=================================================================== |
--- Source/WebCore/dom/XMLDocumentParserQt.cpp (revision 87099) |
+++ Source/WebCore/dom/XMLDocumentParserQt.cpp (working copy) |
@@ -556,10 +556,10 @@ |
{ |
exitText(); |
- Node* n = m_currentNode; |
+ RefPtr<ContainerNode> n = m_currentNode; |
n->finishParsingChildren(); |
- if (m_scriptingPermission == FragmentScriptingNotAllowed && n->isElementNode() && toScriptElement(static_cast<Element*>(n))) { |
+ if (m_scriptingPermission == FragmentScriptingNotAllowed && n->isElementNode() && toScriptElement(static_cast<Element*>(n.get()))) { |
popCurrentNode(); |
ExceptionCode ec; |
n->remove(ec); |
@@ -572,7 +572,7 @@ |
return; |
} |
- Element* element = static_cast<Element*>(n); |
+ Element* element = static_cast<Element*>(n.get()); |
// The element's parent may have already been removed from document. |
// Parsing continues in this case, but scripts aren't executed. |