Index: Source/core/html/parser/HTMLConstructionSite.cpp |
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp |
index 4db3db9d6ec75a57ba6889556911c551cce62e0e..46c6faf616dc18a9a3e56b880b6d67781aadd675 100644 |
--- a/Source/core/html/parser/HTMLConstructionSite.cpp |
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp |
@@ -99,7 +99,7 @@ static inline void insert(HTMLConstructionSiteTask& task) |
task.parent = toHTMLTemplateElement(task.parent.get())->content(); |
if (ContainerNode* parent = task.child->parentNode()) |
- parent->parserRemoveChild(task.child.get()); |
+ parent->parserRemoveChild(*task.child); |
if (task.nextChild) |
task.parent->parserInsertBefore(task.child.get(), task.nextChild.get()); |
@@ -124,7 +124,7 @@ static inline void executeReparentTask(HTMLConstructionSiteTask& task) |
ASSERT(task.operation == HTMLConstructionSiteTask::Reparent); |
if (ContainerNode* parent = task.child->parentNode()) |
- parent->parserRemoveChild(task.child.get()); |
+ parent->parserRemoveChild(*task.child); |
task.parent->parserAppendChild(task.child); |
} |