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

Unified Diff: Source/core/timing/Performance.cpp

Issue 150653006: Remove the Vector::append overload that takes a Vector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « Source/core/svg/SVGPathByteStream.h ('k') | Source/core/timing/PerformanceUserTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/Performance.cpp
diff --git a/Source/core/timing/Performance.cpp b/Source/core/timing/Performance.cpp
index 323ce7f721163db34a59d074916806843d398ea7..6ba30c992b2768f84888e18fca1c2e3bddf3c2c3 100644
--- a/Source/core/timing/Performance.cpp
+++ b/Source/core/timing/Performance.cpp
@@ -99,11 +99,11 @@ PerformanceEntryVector Performance::getEntries() const
{
PerformanceEntryVector entries;
- entries.append(m_resourceTimingBuffer);
+ entries.appendVector(m_resourceTimingBuffer);
if (m_userTiming) {
- entries.append(m_userTiming->getMarks());
- entries.append(m_userTiming->getMeasures());
+ entries.appendVector(m_userTiming->getMarks());
+ entries.appendVector(m_userTiming->getMeasures());
}
std::sort(entries.begin(), entries.end(), PerformanceEntry::startTimeCompareLessThan);
@@ -120,9 +120,9 @@ PerformanceEntryVector Performance::getEntriesByType(const String& entryType)
if (m_userTiming) {
if (equalIgnoringCase(entryType, "mark"))
- entries.append(m_userTiming->getMarks());
+ entries.appendVector(m_userTiming->getMarks());
else if (equalIgnoringCase(entryType, "measure"))
- entries.append(m_userTiming->getMeasures());
+ entries.appendVector(m_userTiming->getMeasures());
}
std::sort(entries.begin(), entries.end(), PerformanceEntry::startTimeCompareLessThan);
@@ -140,9 +140,9 @@ PerformanceEntryVector Performance::getEntriesByName(const String& name, const S
if (m_userTiming) {
if (entryType.isNull() || equalIgnoringCase(entryType, "mark"))
- entries.append(m_userTiming->getMarks(name));
+ entries.appendVector(m_userTiming->getMarks(name));
if (entryType.isNull() || equalIgnoringCase(entryType, "measure"))
- entries.append(m_userTiming->getMeasures(name));
+ entries.appendVector(m_userTiming->getMeasures(name));
}
std::sort(entries.begin(), entries.end(), PerformanceEntry::startTimeCompareLessThan);
« no previous file with comments | « Source/core/svg/SVGPathByteStream.h ('k') | Source/core/timing/PerformanceUserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698