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

Unified Diff: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.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/svg/animation/SVGSMILElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
index 9f52f11b9453d9e1cc4ae6287fcbcff364f7f8b5..70dd53c2945f91f3fac4ed4c3631c36196b31cb2 100644
--- a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
@@ -279,7 +279,7 @@ static inline void clearTimesWithDynamicOrigins(
Vector<SMILTimeWithOrigin>& timeList) {
for (int i = timeList.size() - 1; i >= 0; --i) {
if (timeList[i].originIsScript())
- timeList.remove(i);
+ timeList.erase(i);
}
}
@@ -1240,7 +1240,7 @@ void SVGSMILElement::dispatchPendingEvent(const AtomicString& eventType) {
eventType == EventTypeNames::repeatEvent || eventType == "repeatn");
if (eventType == "repeatn") {
unsigned repeatEventCount = m_repeatEventCountList.front();
- m_repeatEventCountList.remove(0);
+ m_repeatEventCountList.erase(0);
dispatchEvent(RepeatEvent::create(eventType, repeatEventCount));
} else {
dispatchEvent(Event::create(eventType));

Powered by Google App Engine
This is Rietveld 408576698