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(); |