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

Unified Diff: third_party/WebKit/Source/core/events/Event.cpp

Issue 2233543002: Make first TouchStart and first TouchMove events on a flinging layer non-blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 4 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
Index: third_party/WebKit/Source/core/events/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 5e661a6993d2df071da3379668d156110fa54678..77fe19aa8353f3da3c207cc402182decc9b0361c 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -81,6 +81,7 @@ Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableAr
, m_wasInitialized(true)
, m_isTrusted(false)
, m_handlingPassive(false)
+ , m_preventDefaultCalledOnUncancelableEvent(false)
, m_eventPhase(0)
, m_currentTarget(nullptr)
, m_platformTimeStamp(platformTimeStamp)
@@ -116,6 +117,7 @@ void Event::initEvent(const AtomicString& eventTypeArg, bool canBubbleArg, bool
m_immediatePropagationStopped = false;
m_defaultPrevented = false;
m_isTrusted = false;
+ m_preventDefaultCalledOnUncancelableEvent = false;
m_type = eventTypeArg;
m_canBubble = canBubbleArg;
@@ -233,6 +235,8 @@ void Event::preventDefault()
if (m_cancelable)
m_defaultPrevented = true;
+ else
+ m_preventDefaultCalledOnUncancelableEvent = true;
}
void Event::setTarget(EventTarget* target)
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/input/TouchEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698