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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index e6a194c1150243b641f444baa58259607daa2da6..23deafcb63f06d26a09932db1378807f95de23df 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -470,7 +470,7 @@ ComputedStyle* ComputedStyle::addCachedPseudoStyle(
if (!m_cachedPseudoStyles)
m_cachedPseudoStyles = WTF::wrapUnique(new PseudoStyleCache);
- m_cachedPseudoStyles->append(pseudo);
+ m_cachedPseudoStyles->push_back(pseudo);
return result;
}
@@ -1136,7 +1136,7 @@ void ComputedStyle::addPaintImage(StyleImage* image) {
m_rareNonInheritedData.access()->m_paintImages =
WTF::makeUnique<Vector<Persistent<StyleImage>>>();
}
- m_rareNonInheritedData.access()->m_paintImages->append(image);
+ m_rareNonInheritedData.access()->m_paintImages->push_back(image);
}
void ComputedStyle::addCursor(StyleImage* image,
@@ -1144,7 +1144,7 @@ void ComputedStyle::addCursor(StyleImage* image,
const IntPoint& hotSpot) {
if (!m_rareInheritedData.access()->cursorData)
m_rareInheritedData.access()->cursorData = new CursorList;
- m_rareInheritedData.access()->cursorData->append(
+ m_rareInheritedData.access()->cursorData->push_back(
CursorData(image, hotSpotSpecified, hotSpot));
}
@@ -1226,7 +1226,7 @@ void ComputedStyle::updateIsStackingContext(bool isDocumentElement,
void ComputedStyle::addCallbackSelector(const String& selector) {
if (!m_rareNonInheritedData->m_callbackSelectors.contains(selector))
- m_rareNonInheritedData.access()->m_callbackSelectors.append(selector);
+ m_rareNonInheritedData.access()->m_callbackSelectors.push_back(selector);
}
void ComputedStyle::setContent(ContentData* contentData) {
« no previous file with comments | « third_party/WebKit/Source/core/style/BasicShapes.h ('k') | third_party/WebKit/Source/core/style/FilterOperationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698