| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index 2500b8a53596aa222e187172cb7312d9e698b7ca..9c9a776281cbb8d71904a31f8dd1135f840f1606 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -522,11 +522,11 @@ static Element* contextElementForInsertion(const String& where, Element* element
|
|
|
| void HTMLElement::insertAdjacentHTML(const String& where, const String& markup, ExceptionState& es)
|
| {
|
| - Element* contextElement = contextElementForInsertion(where, this, es);
|
| + RefPtr<Element> contextElement = contextElementForInsertion(where, this, es);
|
| if (!contextElement)
|
| return;
|
|
|
| - RefPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, contextElement, AllowScriptingContent, "insertAdjacentHTML", es);
|
| + RefPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, contextElement.get(), AllowScriptingContent, "insertAdjacentHTML", es);
|
| if (!fragment)
|
| return;
|
| insertAdjacent(where, fragment.get(), es);
|
|
|