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

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 905463007: Update ScrollAnimator's copy of the layer dimensions after layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | Source/platform/scroll/ScrollAnimator.h » ('j') | Source/platform/scroll/ScrollAnimator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 7cfecdc9e3832e5a5a14dc5a2010371b30cbdbd3..c2840a5a9c706fb8c81bed2a5e313f0ee11dfaf8 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -257,6 +257,11 @@ void RenderLayer::updateLayerPositionRecursive()
if (m_reflectionInfo)
m_reflectionInfo->reflection()->layout();
+ // FIXME(400589): We would like to do this in RenderLayerScrollableArea::updateAfterLayout,
+ // but it depends on the size computed by updateLayerPosition.
+ if (m_scrollableArea)
+ m_scrollableArea->scrollAnimator()->contentsResized();
ajuma 2015/02/06 14:41:13 Calling scrollAnimator() will construct an animato
+
// FIXME: We should be able to remove this call because we don't care about
// any descendant-dependent flags, but code somewhere else is reading these
// flags and depending on us to update them.
« no previous file with comments | « no previous file | Source/platform/scroll/ScrollAnimator.h » ('j') | Source/platform/scroll/ScrollAnimator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698