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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 0f74381cfd16e87b85a31b55d934fdf427d52728..13bdb1209f8c4ff470f914dc81760958b086b75e 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -450,7 +450,7 @@ void ComputedStyle::removeCachedPseudoStyle(PseudoId pid) {
for (size_t i = 0; i < m_cachedPseudoStyles->size(); ++i) {
ComputedStyle* pseudoStyle = m_cachedPseudoStyles->at(i).get();
if (pseudoStyle->styleType() == pid) {
- m_cachedPseudoStyles->remove(i);
+ m_cachedPseudoStyles->erase(i);
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698