Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
index 6f2be648af1c9c31e1949941a6ffbec4a62d1e49..4d60c5b36681c9c2cbb7a2232b3b69b2e2985ade 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -625,6 +625,8 @@ bool LayoutObject::scrollRectToVisible(const LayoutRect& rect, |
const ScrollAlignment& alignY, |
ScrollType scrollType, |
bool makeVisibleInVisualViewport) { |
+ frameView()->updateAllLifecyclePhasesExceptPaint(); |
+ |
LayoutBox* enclosingBox = this->enclosingBox(); |
if (!enclosingBox) |
return false; |