| 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 dc5974ba26fa9533ccc3859d07c7794ee1d1ad18..5b6c8abadf6de8dd110bbbe64bc51269e61f973a 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -2059,6 +2059,9 @@ void Document::updateStyle() {
|
| inheritHtmlAndBodyElementStyles(change);
|
| if (documentElement->shouldCallRecalcStyle(change))
|
| documentElement->recalcStyle(change);
|
| + if (documentElement->needsReattachLayoutTree() ||
|
| + documentElement->childNeedsReattachLayoutTree())
|
| + documentElement->rebuildLayoutTree();
|
| }
|
|
|
| view()->recalcOverflowAfterStyleChange();
|
|
|