Index: Source/WebCore/rendering/RenderLayer.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderLayer.cpp (revision 86004) |
+++ Source/WebCore/rendering/RenderLayer.cpp (working copy) |
@@ -211,6 +211,9 @@ |
destroyScrollbar(HorizontalScrollbar); |
destroyScrollbar(VerticalScrollbar); |
+ if (m_reflection) |
+ removeReflection(); |
+ |
// Child layers will be deleted by their corresponding render objects, so |
// we don't need to delete them ourselves. |
@@ -226,9 +229,6 @@ |
// Make sure we have no lingering clip rects. |
ASSERT(!m_clipRects); |
- if (m_reflection) |
- removeReflection(); |
- |
if (m_scrollCorner) |
m_scrollCorner->destroy(); |
if (m_resizer) |