Chromium Code Reviews| 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; |
| } |