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

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
Index: Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp b/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
index f9709619ce46662a936bcdbfc60792014a5d1423..be4569ead1a7e3e08e9067c1bb150814cf7e9cdf 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.
+ LayoutObject::DangerousLayoutTreeMutator(*m_reflection).setParent(m_box); // We create a 1-way connection.
esprehn 2015/08/21 21:20:32 Please un-nest the classes.
}
void DeprecatedPaintLayerReflectionInfo::destroy()
@@ -71,7 +71,7 @@ void DeprecatedPaintLayerReflectionInfo::destroy()
if (!m_reflection->documentBeingDestroyed())
m_reflection->removeLayers(box().layer());
- m_reflection->setParent(0);
+ LayoutObject::DangerousLayoutTreeMutator(*m_reflection).setParent(nullptr);
m_reflection->destroy();
m_reflection = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698