Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index edecda6ba994935a308e864a4b511d98288d9a2b..aa012f7afebc1a01cf2a82ddfbe64e504e7b72fc 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -465,6 +465,7 @@ Document::Document(const DocumentInit& initializer, |
m_hasXMLDeclaration(0), |
m_designMode(false), |
m_isRunningExecCommand(false), |
+ m_hasReceivedUserGesture(false), |
m_hasAnnotatedRegions(false), |
m_annotatedRegionsDirty(false), |
m_useSecureKeyboardEntryWhenActive(false), |
@@ -3368,6 +3369,7 @@ MouseEventWithHitTestResults Document::prepareMouseEvent( |
const LayoutPoint& documentPoint, |
const PlatformMouseEvent& event) { |
DCHECK(layoutViewItem().isNull() || layoutViewItem().isLayoutView()); |
+ m_hasReceivedUserGesture = true; |
Rick Byers
2016/10/05 20:32:31
This means that Document::m_hasReceivedUserGesture
Nate Chapin
2016/10/05 21:43:56
Ah, I'd missed the subtlety that a PlatfromEvent d
|
// LayoutView::hitTest causes a layout, and we don't want to hit that until |
// the first layout because until then, there is nothing shown on the screen - |