| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 1d02cf51a8f803f3045df673fe1cb1b8534986fd..2f520c34adf8a3cec0cff7c1c1b1b0de5a1234b3 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -5650,6 +5650,12 @@ void Document::removeFromTopLayer(Element* element) {
|
| DCHECK_NE(position, kNotFound);
|
| m_topLayerElements.remove(position);
|
| element->setIsInTopLayer(false);
|
| +
|
| + // Any scrollers that were laid out from addToTopLayer need to be laid out
|
| + // again now to keep FrameView::m_scrollableAreas up to date. To that end,
|
| + // force normal layout instead of simplified layout on the document.
|
| + // See crbug.com/633520 for details.
|
| + layoutView()->setNeedsLayout(LayoutInvalidationReason::TopLayerChanged);
|
| }
|
|
|
| HTMLDialogElement* Document::activeModalDialog() const {
|
|
|