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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h

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/layout/shapes/ShapeOutsideInfo.h
diff --git a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h
index 59a96e84d6b777c69f118721973297e4be08f073..6008e28bef195d39f187a940afbf155e3df7ccd4 100644
--- a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h
+++ b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.h
@@ -132,7 +132,7 @@ class ShapeOutsideInfo final {
static ShapeOutsideInfo& ensureInfo(const LayoutBox& key) {
InfoMap& infoMap = ShapeOutsideInfo::infoMap();
- if (ShapeOutsideInfo* info = infoMap.get(&key))
+ if (ShapeOutsideInfo* info = infoMap.at(&key))
return *info;
InfoMap::AddResult result =
infoMap.insert(&key, ShapeOutsideInfo::createInfo(key));
@@ -140,7 +140,7 @@ class ShapeOutsideInfo final {
}
static void removeInfo(const LayoutBox& key) { infoMap().erase(&key); }
static ShapeOutsideInfo* info(const LayoutBox& key) {
- return infoMap().get(&key);
+ return infoMap().at(&key);
}
void markShapeAsDirty() { m_shape.reset(); }

Powered by Google App Engine
This is Rietveld 408576698