Index: third_party/WebKit/Source/core/layout/LayoutPart.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutPart.cpp b/third_party/WebKit/Source/core/layout/LayoutPart.cpp |
index 2086455883384e2767cdd96ed8860200ca45e2a3..af1e8533ec8904570e656b7a97ccbde606ee379d 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutPart.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutPart.cpp |
@@ -309,8 +309,9 @@ void LayoutPart::updateWidgetGeometry() |
// If frame bounds are changing mark the view for layout. Also check the |
// frame's page to make sure that the frame isn't in the process of being |
- // destroyed. |
- if (frameView && boundsWillChange && frameView->frame().page()) |
+ // destroyed. If iframe scrollbars needs reconstruction from native to custom |
+ // scrollbar, then also we need to layout the frameview. |
+ if (frameView && frameView->frame().page() && (boundsWillChange || frameView->needsScrollbarReconstruction())) |
frameView->setNeedsLayout(); |
updateWidgetGeometryInternal(); |