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

Unified Diff: third_party/WebKit/Source/core/page/TouchAdjustment.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
Index: third_party/WebKit/Source/core/page/TouchAdjustment.cpp
diff --git a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
index 4da6248023e46d0c2e79b01ff543710ae10c4447..43dad53a6c02f8557589930d43fb647482e477c4 100644
--- a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
+++ b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
@@ -153,7 +153,7 @@ static inline void appendQuadsToSubtargetList(
Vector<FloatQuad>::const_iterator it = quads.begin();
const Vector<FloatQuad>::const_iterator end = quads.end();
for (; it != end; ++it)
- subtargets.append(SubtargetGeometry(node, *it));
+ subtargets.push_back(SubtargetGeometry(node, *it));
}
static inline void appendBasicSubtargetsForNode(
@@ -240,16 +240,16 @@ static inline void appendZoomableSubtargets(Node* node,
Vector<FloatQuad> quads;
FloatRect borderBoxRect(layoutObject->borderBoxRect());
FloatRect contentBoxRect(layoutObject->contentBoxRect());
- quads.append(layoutObject->localToAbsoluteQuad(borderBoxRect));
+ quads.push_back(layoutObject->localToAbsoluteQuad(borderBoxRect));
if (borderBoxRect != contentBoxRect)
- quads.append(layoutObject->localToAbsoluteQuad(contentBoxRect));
+ quads.push_back(layoutObject->localToAbsoluteQuad(contentBoxRect));
// FIXME: For LayoutBlocks, add column boxes and content boxes cleared for
// floats.
Vector<FloatQuad>::const_iterator it = quads.begin();
const Vector<FloatQuad>::const_iterator end = quads.end();
for (; it != end; ++it)
- subtargets.append(SubtargetGeometry(node, *it));
+ subtargets.push_back(SubtargetGeometry(node, *it));
}
static inline Node* parentShadowHostOrOwner(const Node* node) {
@@ -285,7 +285,7 @@ void compileSubtargetList(const HeapVector<Member<Node>>& intersectedNodes,
respondingNode = responderMap.get(visitedNode);
if (respondingNode)
break;
- visitedNodes.append(visitedNode);
+ visitedNodes.push_back(visitedNode);
// Check if the node filter applies, which would mean we have found a
// responding node.
if (nodeFilter(visitedNode)) {
@@ -307,7 +307,7 @@ void compileSubtargetList(const HeapVector<Member<Node>>& intersectedNodes,
responderMap.add(visitedNodes[j], respondingNode);
if (respondingNode)
- candidates.append(node);
+ candidates.push_back(node);
}
// We compile the list of component absolute quads instead of using the
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContextTest.cpp ('k') | third_party/WebKit/Source/core/page/TouchDisambiguation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698