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

Unified Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 2549353002: Implement PaintLayer::scrollsWithViewport for SPv2. (Closed)
Patch Set: none Created 4 years 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/page/AutoscrollController.cpp
diff --git a/third_party/WebKit/Source/core/page/AutoscrollController.cpp b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
index 32b5c3823ab7dce1a1a6944d0f9a59bd400e1a0e..c907c940f95f35e40d0b8759049a26fd19e00701 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.cpp
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
@@ -77,6 +77,8 @@ void AutoscrollController::startAutoscrollForSelection(
// it's already active.
if (m_autoscrollType != NoAutoscroll)
return;
+ if (layoutObject)
+ layoutObject->frameView()->updateAllLifecyclePhasesExceptPaint();
LayoutBox* scrollable = LayoutBox::findAutoscrollable(layoutObject);
if (!scrollable)
scrollable =
@@ -163,6 +165,10 @@ void AutoscrollController::updateDragAndDrop(Node* dropTargetNode,
dropTargetNode->layoutObject()->frame())
return;
+ dropTargetNode->layoutObject()
+ ->frameView()
+ ->updateAllLifecyclePhasesExceptPaint();
+
LayoutBox* scrollable =
LayoutBox::findAutoscrollable(dropTargetNode->layoutObject());
if (!scrollable) {

Powered by Google App Engine
This is Rietveld 408576698