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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2693433002: Migrate WTF::HashMap::add() to ::insert() [final] (Closed)
Patch Set: more platform-specific references 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/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 786449fb35c9431719650de6bd0a451cddff4080..c86eecd23bcb11405ff93ff668cc7856c6edd9dd 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -3089,7 +3089,7 @@ void PaintLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const {
if (const PaintLayer* parentLayer = parent()) {
LayerHitTestRects::iterator iter = rects.find(parentLayer);
if (iter == rects.end()) {
- rects.add(parentLayer, Vector<LayoutRect>())
+ rects.insert(parentLayer, Vector<LayoutRect>())
.storedValue->value.push_back(physicalBoundingBox(parentLayer));
} else {
iter->value.push_back(physicalBoundingBox(parentLayer));

Powered by Google App Engine
This is Rietveld 408576698