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 6cde5a4680945779ea86da6e77b4405b1cd34343..4c1ee3bf821d97030a5a6fa34e48fe86c0ddfa38 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -98,6 +98,7 @@ |
#include "core/page/TouchDisambiguation.h" |
#include "core/page/ValidationMessageClientImpl.h" |
#include "core/page/scrolling/TopDocumentRootScrollerController.h" |
+#include "core/paint/FirstMeaningfulPaintDetector.h" |
#include "core/paint/LinkHighlightImpl.h" |
#include "core/paint/PaintLayer.h" |
#include "core/timing/DOMWindowPerformance.h" |
@@ -2186,6 +2187,12 @@ WebInputEventResult WebViewImpl::HandleInputEvent( |
return WebInputEventResult::kHandledSystem; |
} |
+ if (input_event.GetType() != WebInputEvent::kMouseMove) { |
+ FirstMeaningfulPaintDetector::From( |
+ *MainFrameImpl()->GetFrame()->GetDocument()) |
+ .NotifyInputEvent(); |
+ } |
+ |
if (mouse_capture_node_ && |
WebInputEvent::IsMouseEventType(input_event.GetType())) { |
TRACE_EVENT1("input", "captured mouse event", "type", |