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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2404393003: Tie scroll anchoring adjustments to frame lifecycle instead of layout. (Closed)
Patch Set: address review comments Created 4 years, 2 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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index bc0c6fccbfdae428e580591c2cb613fd7549a6c5..a5ddd930564966c71557021ef3c76bc54ad15e41 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -973,7 +973,7 @@ double LocalDOMWindow::scrollX() const {
if (!view)
return 0;
- document()->updateStyleAndLayoutIgnorePendingStylesheets();
+ document()->updateScrollPosition();
double viewportX =
view->layoutViewportScrollableArea()->scrollOffset().width();
@@ -991,7 +991,7 @@ double LocalDOMWindow::scrollY() const {
if (!view)
return 0;
- document()->updateStyleAndLayoutIgnorePendingStylesheets();
+ document()->updateScrollPosition();
double viewportY =
view->layoutViewportScrollableArea()->scrollOffset().height();

Powered by Google App Engine
This is Rietveld 408576698