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

Unified Diff: third_party/WebKit/Source/core/editing/EditingBehavior.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/editing/EditingBehavior.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingBehavior.cpp b/third_party/WebKit/Source/core/editing/EditingBehavior.cpp
index 49088f02ad4cbd064e609650a27f02138bfc6258..6f21384e344d47853094759340dd7a28b9ad19cd 100644
--- a/third_party/WebKit/Source/core/editing/EditingBehavior.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingBehavior.cpp
@@ -231,14 +231,14 @@ const char* EditingBehavior::interpretKeyEvent(
if (keyEvent->type() == WebInputEvent::RawKeyDown) {
int mapKey = modifiers << 16 | event.keyCode();
- const char* name = mapKey ? keyDownCommandsMap->get(mapKey) : nullptr;
+ const char* name = mapKey ? keyDownCommandsMap->at(mapKey) : nullptr;
if (!name)
name = lookupCommandNameFromDomKeyKeyDown(event.key(), modifiers);
return name;
}
int mapKey = modifiers << 16 | event.charCode();
- return mapKey ? keyPressCommandsMap->get(mapKey) : 0;
+ return mapKey ? keyPressCommandsMap->at(mapKey) : 0;
}
bool EditingBehavior::shouldInsertCharacter(const KeyboardEvent& event) const {

Powered by Google App Engine
This is Rietveld 408576698