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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp

Issue 2614033002: Migrate WTF::Vector::append() to ::push_back() [part 11 of N] (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp
index ad27eae93f1cd9aa888c8602c6fb324511d27984..c0c58cc4ff515723b805fbde89b72f25c2383d59 100644
--- a/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp
@@ -95,7 +95,7 @@ static Vector<FloatPoint> localToContainerSnapCoordinates(
FloatPoint containerPoint =
snapArea.localToAncestorPoint(localPoint, &containerBox);
containerPoint.moveBy(scrollOffset);
- result.append(containerPoint);
+ result.push_back(containerPoint);
}
return result;
}
@@ -131,7 +131,7 @@ Vector<double> SnapCoordinator::snapOffsets(const ContainerNode& element,
repeat = std::max<LayoutUnit>(repeat, LayoutUnit(1));
for (LayoutUnit offset = repeat; offset <= (scrollSize - clientSize);
offset += repeat) {
- result.append(offset.toFloat());
+ result.push_back(offset.toFloat());
}
}
@@ -148,7 +148,7 @@ Vector<double> SnapCoordinator::snapOffsets(const ContainerNode& element,
: snapCoordinate.y();
if (snapOffset > scrollSize - clientSize)
continue;
- result.append(snapOffset);
+ result.push_back(snapOffset);
didAddSnapAreaOffset = true;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698