Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index eba719d78293ca7cfb4fa3f3d8c579cd972336ff..6fe2463900b87aec47527bd6b46251486ee95310 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -5894,7 +5894,7 @@ void Document::removeFromTopLayer(Element* element) { |
return; |
size_t position = m_topLayerElements.find(element); |
DCHECK_NE(position, kNotFound); |
- m_topLayerElements.remove(position); |
+ m_topLayerElements.erase(position); |
element->setIsInTopLayer(false); |
} |