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

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

Issue 1419143007: Fix bug in CSSOM window.scroll api (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: inert scroll events for visual viewport Created 5 years, 1 month 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 | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 78819b9f828fe50153ef1b20151d50e3bfa73dca..eb0b00295e8bf348b8b6580eba9a624c47ad10b9 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -216,8 +216,10 @@ void VisualViewport::setScaleAndLocation(float scale, const FloatPoint& location
if (ScrollingCoordinator* coordinator = frameHost().page().scrollingCoordinator())
coordinator->scrollableAreaScrollLayerDidChange(this);
- if (Document* document = mainFrame()->document())
- document->enqueueScrollEventForNode(document);
+ if (!frameHost().settings().inertVisualViewport()) {
+ if (Document* document = mainFrame()->document())
+ document->enqueueScrollEventForNode(document);
+ }
mainFrame()->loader().client()->didChangeScrollOffset();
valuesChanged = true;
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698