Index: third_party/WebKit/Source/core/events/PointerEvent.cpp |
diff --git a/third_party/WebKit/Source/core/events/PointerEvent.cpp b/third_party/WebKit/Source/core/events/PointerEvent.cpp |
index 4d63b1e14d0e8cf43088b6d10b846c4241a96d63..542d71eb39895ecbac0bc986ce754933c81266d3 100644 |
--- a/third_party/WebKit/Source/core/events/PointerEvent.cpp |
+++ b/third_party/WebKit/Source/core/events/PointerEvent.cpp |
@@ -35,6 +35,11 @@ PointerEvent::PointerEvent(const AtomicString& type, |
m_pointerType = initializer.pointerType(); |
if (initializer.hasIsPrimary()) |
m_isPrimary = initializer.isPrimary(); |
+ if (initializer.hasCoalescedEvents()) { |
+ for (auto coalescedEvent : initializer.coalescedEvents()) { |
dtapuska
2016/11/23 16:57:24
don't think you need the braces for the for loop
Navid Zolghadr
2016/11/23 17:04:09
Removed.
|
+ m_coalescedEvents.append(coalescedEvent); |
+ } |
+ } |
} |
bool PointerEvent::isMouseEvent() const { |
@@ -49,7 +54,12 @@ EventDispatchMediator* PointerEvent::createMediator() { |
return PointerEventDispatchMediator::create(this); |
} |
+HeapVector<Member<PointerEvent>> PointerEvent::getCoalescedEvents() const { |
+ return m_coalescedEvents; |
+} |
+ |
DEFINE_TRACE(PointerEvent) { |
+ visitor->trace(m_coalescedEvents); |
MouseEvent::trace(visitor); |
} |