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

Unified Diff: Source/core/svg/SVGElementInstance.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/svg/SVGElementInstance.cpp
diff --git a/Source/core/svg/SVGElementInstance.cpp b/Source/core/svg/SVGElementInstance.cpp
index 7bf604809b4bfd47990b7865215bef6642224afa..3e835c184e4a1412bd0fd244deb80363db40809e 100644
--- a/Source/core/svg/SVGElementInstance.cpp
+++ b/Source/core/svg/SVGElementInstance.cpp
@@ -149,7 +149,7 @@ void SVGElementInstance::detach()
m_directUseElement = 0;
m_correspondingUseElement = 0;
- removeDetachedChildrenInContainer<SVGElementInstance, SVGElementInstance>(this);
+ removeDetachedChildrenInContainer<SVGElementInstance, SVGElementInstance>(*this);
}
PassRefPtr<SVGElementInstanceList> SVGElementInstance::childNodes()
@@ -165,7 +165,7 @@ void SVGElementInstance::setShadowTreeElement(SVGElement* element)
void SVGElementInstance::appendChild(PassRefPtr<SVGElementInstance> child)
{
- appendChildToContainer<SVGElementInstance, SVGElementInstance>(child.get(), this);
+ appendChildToContainer<SVGElementInstance, SVGElementInstance>(*child, *this);
}
void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element)

Powered by Google App Engine
This is Rietveld 408576698