| Index: Source/core/rendering/RenderObject.cpp
|
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
|
| index 2a24f7478b303ec227a7bf5c51cda20063f9667c..27ad5c9d21948305aa93afd17ee38eb7aa25fddd 100644
|
| --- a/Source/core/rendering/RenderObject.cpp
|
| +++ b/Source/core/rendering/RenderObject.cpp
|
| @@ -2814,8 +2814,8 @@ void RenderObject::destroyAndCleanupAnonymousWrappers()
|
| if (destroyRootParent->isRenderFlowThread() || destroyRootParent->isAnonymousColumnSpanBlock())
|
| break;
|
|
|
| - if (destroyRootParent->slowFirstChild() != this || destroyRootParent->slowLastChild() != this)
|
| - break;
|
| + if (destroyRootParent->slowFirstChild() != destroyRoot || destroyRootParent->slowLastChild() != destroyRoot)
|
| + break; // Need to keep the anonymous parent, since it won't become empty by the removal of this renderer.
|
| }
|
|
|
| destroyRoot->destroy();
|
|
|