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

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

Issue 18863002: Merge 153364 "Call didProgrammaticallyScroll only when Programma..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1537/
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/WebKit/chromium/tests/ProgrammaticScrollTest.cpp ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FrameView.cpp
===================================================================
--- Source/core/page/FrameView.cpp (revision 153685)
+++ Source/core/page/FrameView.cpp (working copy)
@@ -1579,7 +1579,8 @@
if (newScrollPosition == scrollPosition())
return;
- if (Page* page = m_frame->page())
+ Page* page = m_frame->page();
+ if (page && RuntimeEnabledFeatures::programmaticScrollNotificationsEnabled())
page->chrome().client()->didProgrammaticallyScroll(m_frame.get(), newScrollPosition);
if (requestScrollPositionUpdate(newScrollPosition))
« no previous file with comments | « Source/WebKit/chromium/tests/ProgrammaticScrollTest.cpp ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698