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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp

Issue 2743023002: Migrate WTF::Deque::append() to ::push_back() (Closed)
Patch Set: rebase 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/platform/fonts/shaping/HarfBuzzShaper.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
index d9084ef1e733fe292fbd298b86a81069ce6435d2..d4ac4fa90258e24109dd5e4de5bc5691fae36b51 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
@@ -252,13 +252,14 @@ bool HarfBuzzShaper::extractShapeResults(RangeData* rangeData,
if (currentClusterResult == Shaped && !isLastResort) {
// Now it's clear that we need to continue processing.
if (!fontCycleQueued) {
- rangeData->holesQueue.append(HolesQueueItem(HolesQueueNextFont, 0, 0));
+ rangeData->holesQueue.push_back(
+ HolesQueueItem(HolesQueueNextFont, 0, 0));
fontCycleQueued = true;
}
// Here we need to put character positions.
ASSERT(numCharacters);
- rangeData->holesQueue.append(
+ rangeData->holesQueue.push_back(
HolesQueueItem(HolesQueueRange, startIndex, numCharacters));
}
@@ -569,9 +570,9 @@ void HarfBuzzShaper::shapeSegment(RangeData* rangeData,
RefPtr<FontFallbackIterator> fallbackIterator =
font->createFontFallbackIterator(segment.fontFallbackPriority);
- rangeData->holesQueue.append(HolesQueueItem(HolesQueueNextFont, 0, 0));
- rangeData->holesQueue.append(HolesQueueItem(HolesQueueRange, segment.start,
- segment.end - segment.start));
+ rangeData->holesQueue.push_back(HolesQueueItem(HolesQueueNextFont, 0, 0));
+ rangeData->holesQueue.push_back(HolesQueueItem(HolesQueueRange, segment.start,
+ segment.end - segment.start));
bool fontCycleQueued = false;
Vector<UChar32> fallbackCharsHint;

Powered by Google App Engine
This is Rietveld 408576698