| Index: third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp b/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
|
| index 9d8802674bd23e2c141bd0c45cd17cd60d8d0172..9c625c6a370943b2db6b8acc6cb19cdbee543279 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
|
| @@ -137,7 +137,8 @@ LayoutObject* LayoutFullScreen::wrapLayoutObject(LayoutObject* object, LayoutObj
|
| ASSERT(containingBlock);
|
| // Since we are moving the |object| to a new parent |fullscreenLayoutObject|,
|
| // the line box tree underneath our |containingBlock| is not longer valid.
|
| - containingBlock->deleteLineBoxTree();
|
| + if (containingBlock->isLayoutBlockFlow())
|
| + toLayoutBlockFlow(containingBlock)->deleteLineBoxTree();
|
|
|
| parent->addChildWithWritingModeOfParent(fullscreenLayoutObject, object);
|
| object->remove();
|
|
|