| Index: Source/core/layout/LayoutObject.cpp
|
| diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
|
| index 822373f88222ca5d4d057771d71ac812fcc2e727..48d1758f8ff81f6948af6f9b8a3b0c71c15b28ed 100644
|
| --- a/Source/core/layout/LayoutObject.cpp
|
| +++ b/Source/core/layout/LayoutObject.cpp
|
| @@ -2274,17 +2274,9 @@ bool LayoutObject::isSelectionBorder() const
|
|
|
| inline void LayoutObject::clearLayoutRootIfNeeded() const
|
| {
|
| - if (frame()) {
|
| - if (FrameView* view = frame()->view()) {
|
| - if (view->layoutRoot() == this) {
|
| - if (!documentBeingDestroyed())
|
| - ASSERT_NOT_REACHED();
|
| - // This indicates a failure to layout the child, which is why
|
| - // the layout root is still set to |this|. Make sure to clear it
|
| - // since we are getting destroyed.
|
| - view->clearLayoutSubtreeRoot();
|
| - }
|
| - }
|
| + if (FrameView* view = frameView()) {
|
| + if (!documentBeingDestroyed())
|
| + view->clearLayoutSubtreeRoot(this);
|
| }
|
| }
|
|
|
|
|