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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 316443004: Oilpan: Remove ref counting from EventTarget and all uses of Pass/RefPtr<EventTarget>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | Source/core/xml/XMLHttpRequestUpload.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index ee179502f0ef1a2975fe969eb751a1bc1f503642..b0fc3fceec006b95b56e1b903a49a299ce82b9e4 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -3480,7 +3480,7 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event)
TargetTouchesHeapMap touchesByTarget;
// Array of touches per state, used to assemble the 'changedTouches' list.
- typedef HashSet<RefPtr<EventTarget> > EventTargetSet;
+ typedef WillBeHeapHashSet<RefPtrWillBeMember<EventTarget> > EventTargetSet;
struct {
// The touches corresponding to the particular change state this struct
// instance represents.
@@ -3493,7 +3493,7 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event)
const PlatformTouchPoint& point = points[i];
LayoutPoint pagePoint = documentPointForWindowPoint(m_frame, point.pos());
PlatformTouchPoint::State pointState = point.state();
- RefPtr<EventTarget> touchTarget;
+ RefPtrWillBeRawPtr<EventTarget> touchTarget = nullptr;
if (pointState == PlatformTouchPoint::TouchReleased || pointState == PlatformTouchPoint::TouchCancelled) {
// The target should be the original target for this touch, so get
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | Source/core/xml/XMLHttpRequestUpload.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698