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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.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/css/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index 07ca59597203bc51d09a378aa2693030cbf9c1d1..b2667f3b1cac9364818411386426a104305291ed 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -296,7 +296,7 @@ bool StyleSheetContents::wrapperDeleteRule(unsigned index) {
m_importRules[index]->clearParentStyleSheet();
if (m_importRules[index]->isFontFaceRule())
notifyRemoveFontFaceRule(toStyleRuleFontFace(m_importRules[index].get()));
- m_importRules.remove(index);
+ m_importRules.erase(index);
return true;
}
index -= m_importRules.size();
@@ -304,14 +304,14 @@ bool StyleSheetContents::wrapperDeleteRule(unsigned index) {
if (index < m_namespaceRules.size()) {
if (!m_childRules.isEmpty())
return false;
- m_namespaceRules.remove(index);
+ m_namespaceRules.erase(index);
return true;
}
index -= m_namespaceRules.size();
if (m_childRules[index]->isFontFaceRule())
notifyRemoveFontFaceRule(toStyleRuleFontFace(m_childRules[index].get()));
- m_childRules.remove(index);
+ m_childRules.erase(index);
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRule.cpp ('k') | third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698