Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 184ed05a8a271e9cc874a41d94ad39fcc278523a..a99a7225ac6f3f0ad13896276511b7aa662bbbba 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -57,6 +57,7 @@ |
#include "core/html/HTMLTextFormControlElement.h" |
#include "core/frame/Frame.h" |
#include "core/rendering/RenderObject.h" |
+#include "core/svg/SVGElement.h" |
#include "platform/weborigin/KURL.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/text/StringBuilder.h" |
@@ -1025,6 +1026,16 @@ PassRefPtr<DocumentFragment> createContextualFragment(const String& markup, HTML |
return fragment.release(); |
} |
+PassRefPtr<DocumentFragment> createContextualFragment(const String& markup, SVGElement* element, ParserContentPolicy parserContentPolicy, ExceptionState& exceptionState) |
+{ |
+ ASSERT(element); |
+ |
+ RefPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, element, parserContentPolicy, "createContextualFragment", exceptionState); |
+ if (!fragment) |
+ return 0; |
+ return fragment.release(); |
+} |
+ |
void replaceChildrenWithFragment(ContainerNode* container, PassRefPtr<DocumentFragment> fragment, ExceptionState& exceptionState) |
{ |
ASSERT(container); |