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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 1148003010: Force layout for main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout-triggers test. Created 5 years, 7 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: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 1cd7458bbc67b8dab90407b9c3189657103bf4e1..dadc77ac82044d732d90305ddecfe01564cf5f81 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -940,6 +940,8 @@ bool EventHandler::scroll(ScrollDirection direction, ScrollGranularity granulari
if (!node || !node->layoutObject())
return false;
+ m_frame->document()->updateLayoutIgnorePendingStylesheets();
+
LayoutBox* curBox = node->layoutObject()->enclosingBox();
while (curBox && !curBox->isLayoutView()) {
ScrollDirectionPhysical physicalDirection = toPhysicalDirection(

Powered by Google App Engine
This is Rietveld 408576698