Index: Source/core/html/parser/HTMLConstructionSite.cpp |
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp |
index 46c6faf616dc18a9a3e56b880b6d67781aadd675..f0ac5ad2b35da009a18d4e4782d52e93480c9c89 100644 |
--- a/Source/core/html/parser/HTMLConstructionSite.cpp |
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp |
@@ -102,7 +102,7 @@ static inline void insert(HTMLConstructionSiteTask& task) |
parent->parserRemoveChild(*task.child); |
if (task.nextChild) |
- task.parent->parserInsertBefore(task.child.get(), task.nextChild.get()); |
+ task.parent->parserInsertBefore(task.child.get(), *task.nextChild); |
else |
task.parent->parserAppendChild(task.child.get()); |
} |
@@ -140,7 +140,7 @@ static inline void executeTakeAllChildrenTask(HTMLConstructionSiteTask& task) |
{ |
ASSERT(task.operation == HTMLConstructionSiteTask::TakeAllChildren); |
- task.parent->parserTakeAllChildrenFrom(task.oldParent()); |
+ task.parent->parserTakeAllChildrenFrom(*task.oldParent()); |
} |
void HTMLConstructionSite::executeTask(HTMLConstructionSiteTask& task) |