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

Unified Diff: third_party/WebKit/Source/core/input/TouchEventManager.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 10 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/input/TouchEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
index 2d91d0797f635d49aa79cfef3bd4dc09378d1f29..43c79beb854965f10e2244d5c4995f6dbb699106 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
@@ -210,7 +210,7 @@ WebInputEventResult TouchEventManager::dispatchTouchEvents(
for (const auto& eventTarget : changedTouches[state].m_targets) {
EventTarget* touchEventTarget = eventTarget;
TouchEvent* touchEvent = TouchEvent::create(
- event, touches, touchesByTarget.get(touchEventTarget),
+ event, touches, touchesByTarget.at(touchEventTarget),
changedTouches[state].m_touches.get(), eventName,
touchEventTarget->toNode()->document().domWindow(),
m_currentTouchAction);
@@ -395,8 +395,8 @@ void TouchEventManager::setAllPropertiesOfTouchInfos(
} else {
// No hittest is performed on move or stationary, since the target
// is not allowed to change anyway.
- touchNode = m_targetForTouchID.get(touchInfo.point.id);
- regionID = m_regionForTouchID.get(touchInfo.point.id);
+ touchNode = m_targetForTouchID.at(touchInfo.point.id);
+ regionID = m_regionForTouchID.at(touchInfo.point.id);
}
LocalFrame* targetFrame = nullptr;

Powered by Google App Engine
This is Rietveld 408576698