Index: Source/core/inspector/DOMEditor.cpp |
diff --git a/Source/core/inspector/DOMEditor.cpp b/Source/core/inspector/DOMEditor.cpp |
index dd6412e41ba9fe5625d4b23fcd35b3758eb93697..152d47ff97cd25039df24769d565d8a4990c17de 100644 |
--- a/Source/core/inspector/DOMEditor.cpp |
+++ b/Source/core/inspector/DOMEditor.cpp |
@@ -221,7 +221,8 @@ public: |
virtual bool perform(ExceptionState& es) |
{ |
m_oldHTML = createMarkup(m_node.get()); |
- DOMPatchSupport domPatchSupport(m_domEditor.get(), m_node->ownerDocument()); |
+ ASSERT(m_node->ownerDocument()); |
+ DOMPatchSupport domPatchSupport(m_domEditor.get(), *m_node->ownerDocument()); |
m_newNode = domPatchSupport.patchNode(m_node.get(), m_html, es); |
return !es.hadException(); |
} |