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

Unified Diff: third_party/WebKit/Source/core/dom/Fullscreen.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest 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/dom/Fullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
index ffe3260014470a00d13352bcf66e11feafa1e6e2..d8616891109c325979f98797539e51f1f797e123 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
@@ -515,7 +515,7 @@ void Fullscreen::fullyExitFullscreen(Document& document) {
// 3. Remove elements from |doc|'s fullscreen element stack until only the top
// element is left.
size_t stackSize = from(doc).m_fullscreenElementStack.size();
- from(doc).m_fullscreenElementStack.remove(0, stackSize - 1);
+ from(doc).m_fullscreenElementStack.erase(0, stackSize - 1);
DCHECK_EQ(from(doc).m_fullscreenElementStack.size(), 1u);
// 4. Act as if the exitFullscreen() method was invoked on |doc|.
@@ -829,7 +829,7 @@ void Fullscreen::elementRemoved(Element& oldNode) {
// stack.
for (size_t i = 0; i < m_fullscreenElementStack.size(); ++i) {
if (m_fullscreenElementStack[i].first.get() == &oldNode) {
- m_fullscreenElementStack.remove(i);
+ m_fullscreenElementStack.erase(i);
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698