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

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

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 5e2842c5150ae1ba3c93147080b639eaf8a5aad4..a6c4b4440b2bc3c701e2f9beaf71d61a293a8e20 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1561,7 +1561,7 @@ void PaintLayerScrollableArea::invalidateStickyConstraintsFor(
PaintLayer* layer,
bool needsCompositingUpdate) {
if (PaintLayerScrollableAreaRareData* d = rareData()) {
- d->m_stickyConstraintsMap.remove(layer);
+ d->m_stickyConstraintsMap.erase(layer);
if (needsCompositingUpdate &&
layer->layoutObject().style()->position() == EPosition::kSticky)
layer->setNeedsCompositingInputsUpdate();

Powered by Google App Engine
This is Rietveld 408576698