Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: Source/core/inspector/DOMEditor.cpp

Issue 23453033: Have DOMPatchSupport and DocumentFragment deal with Document references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/WebVTTParser.cpp ('k') | Source/core/inspector/DOMPatchSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/core/html/track/WebVTTParser.cpp ('k') | Source/core/inspector/DOMPatchSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698