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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2545423002: WebViewImpl: Speculatively request a BeginMainFrame for input
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 36cfad32c04150271df88057bed946431469a1a9..7f84f06771e2dae6b9b2a392ebaa1209cd34882a 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2149,6 +2149,11 @@ WebInputEventResult WebViewImpl::handleInputEvent(
if (m_ignoreInputEvents)
return WebInputEventResult::NotHandled;
+ // Speculatively schedule an animation for this input event with the
+ // assumption that it will trigger one after being handled.
+ // TODO(skyostil): Only do this for certain types of input.
+ scheduleAnimationForWidget();
+
AutoReset<const WebInputEvent*> currentEventChange(&m_currentInputEvent,
&inputEvent);
UIEventWithKeyState::clearNewTabModifierSetFromIsolatedWorld();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698