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

Unified Diff: sky/engine/core/events/Event.cpp

Issue 880473003: sky-scrollable should use a reasonable fling curve (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with heights Created 5 years, 11 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: sky/engine/core/events/Event.cpp
diff --git a/sky/engine/core/events/Event.cpp b/sky/engine/core/events/Event.cpp
index 491a80f6a79611865b9a5a3cd24c1ee4ee4b69c5..af7fdba4f09b88db9825fc0091d1d782c4e108db 100644
--- a/sky/engine/core/events/Event.cpp
+++ b/sky/engine/core/events/Event.cpp
@@ -32,7 +32,8 @@
namespace blink {
Event::Event()
- : m_canBubble(false)
+ : m_timeStamp(currentTimeMS())
+ , m_canBubble(false)
, m_cancelable(false)
, m_propagationStopped(false)
, m_immediatePropagationStopped(false)
@@ -41,12 +42,12 @@ Event::Event()
, m_cancelBubble(false)
, m_eventPhase(0)
, m_currentTarget(nullptr)
- , m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
{
}
Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg)
- : m_type(eventType)
+ : m_timeStamp(currentTimeMS())
+ , m_type(eventType)
, m_canBubble(canBubbleArg)
, m_cancelable(cancelableArg)
, m_propagationStopped(false)
@@ -56,12 +57,12 @@ Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableAr
, m_cancelBubble(false)
, m_eventPhase(0)
, m_currentTarget(nullptr)
- , m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
{
}
Event::Event(const AtomicString& eventType, const EventInit& initializer)
- : m_type(eventType)
+ : m_timeStamp(currentTimeMS())
+ , m_type(eventType)
, m_canBubble(initializer.bubbles)
, m_cancelable(initializer.cancelable)
, m_propagationStopped(false)
@@ -71,7 +72,6 @@ Event::Event(const AtomicString& eventType, const EventInit& initializer)
, m_cancelBubble(false)
, m_eventPhase(0)
, m_currentTarget(nullptr)
- , m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
{
}

Powered by Google App Engine
This is Rietveld 408576698