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

Unified Diff: Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp

Issue 1306993002: Cleanup friends of LayoutObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp b/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
index f9709619ce46662a936bcdbfc60792014a5d1423..629f837897ad5c4c2957334d0c57fe801573ec56 100644
--- a/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
+++ b/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
@@ -63,7 +63,7 @@ DeprecatedPaintLayerReflectionInfo::DeprecatedPaintLayerReflectionInfo(LayoutBox
UseCounter::count(box().document(), UseCounter::Reflection);
m_reflection = LayoutReplica::createAnonymous(&box().document());
- m_reflection->setParent(m_box); // We create a 1-way connection.
+ m_reflection->setDangerousOneWayParent(m_box);
}
void DeprecatedPaintLayerReflectionInfo::destroy()
@@ -71,7 +71,7 @@ void DeprecatedPaintLayerReflectionInfo::destroy()
if (!m_reflection->documentBeingDestroyed())
m_reflection->removeLayers(box().layer());
- m_reflection->setParent(0);
+ m_reflection->setDangerousOneWayParent(nullptr);
m_reflection->destroy();
m_reflection = nullptr;
}
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698