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

Unified Diff: Source/core/html/parser/HTMLConstructionSite.cpp

Issue 49153006: Have ContainerNodeAlgorithms deal with references instead of pointers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698