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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.cpp

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 of N] (Closed)
Patch Set: rebase Created 3 years, 11 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/layout/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 8eb6562d095b027614a742e891ba05715b94c20a..4a760eea66a46f1eec031e925a30b9368ba4da7e 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -389,7 +389,7 @@ void TextAutosizer::prepareClusterStack(LayoutObject* layoutObject) {
m_blocksThatHaveBegunLayout.add(block);
#endif
if (Cluster* cluster = maybeCreateCluster(block))
- m_clusterStack.append(WTF::wrapUnique(cluster));
+ m_clusterStack.push_back(WTF::wrapUnique(cluster));
}
}
@@ -403,7 +403,7 @@ void TextAutosizer::beginLayout(LayoutBlock* block,
ASSERT(!m_clusterStack.isEmpty() || block->isLayoutView());
if (Cluster* cluster = maybeCreateCluster(block))
- m_clusterStack.append(WTF::wrapUnique(cluster));
+ m_clusterStack.push_back(WTF::wrapUnique(cluster));
ASSERT(!m_clusterStack.isEmpty());
@@ -1170,7 +1170,7 @@ void TextAutosizer::applyMultiplier(LayoutObject* layoutObject,
// Don't free currentStyle until the end of the layout pass. This allows
// other parts of the system to safely hold raw ComputedStyle* pointers
// during layout, e.g. BreakingContext::m_currentStyle.
- m_stylesRetainedDuringLayout.append(&currentStyle);
+ m_stylesRetainedDuringLayout.push_back(&currentStyle);
layoutObject->setStyleInternal(style.release());
DCHECK(!layouter || layoutObject->isDescendantOf(&layouter->root()));

Powered by Google App Engine
This is Rietveld 408576698