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

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

Issue 1867693002: Better scrolling fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refined Created 4 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/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index 382d87c48c8c460ef294f8eb247b94af338adc53..994c3a841ac2a9dd41442d2b243e4f41e50156b1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -288,13 +288,8 @@ void LayoutFlexibleBox::layoutBlock(bool relayoutChildren)
layoutFlexItems(relayoutChildren, layoutScope);
- ScrollPositionMap scrollMap;
- if (LayoutBlock::finishDelayUpdateScrollInfo(&layoutScope, &scrollMap)) {
+ if (LayoutBlock::finishDelayUpdateScrollInfo(&layoutScope))
layoutFlexItems(false, layoutScope);
- for (auto& entry : scrollMap) {
- entry.key->scrollToPosition(entry.value, ScrollOffsetClamped);
- }
- }
if (logicalHeight() != previousHeight)
relayoutChildren = true;

Powered by Google App Engine
This is Rietveld 408576698