Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2839183002: Refactor scroll updates after layout. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 6d21000aceae28a022897c6302592d0cdfa9c8a8..b8341c6969ea7ad8634c4d7b38e3d41af6bb9e52 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -331,7 +331,8 @@ void LayoutBoxModelObject::StyleDidChange(StyleDifference diff,
SetChildNeedsLayout();
CreateLayerAfterStyleChange();
if (Parent() && !NeedsLayout()) {
- // FIXME: We should call a specialized version of this function.
+ // FIXME: We should call specialized versions of these functions.
+ Layer()->UpdateScrollingAfterLayout();
Layer()->UpdateLayerPositionsAfterLayout();
}
}

Powered by Google App Engine
This is Rietveld 408576698