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

Unified Diff: third_party/WebKit/Source/platform/geometry/Region.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h 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/platform/geometry/Region.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/Region.cpp b/third_party/WebKit/Source/platform/geometry/Region.cpp
index 3706255db66361f83fe5208985f63d219a10fd6b..31bf4a3ade57f1262c2b04012a47c482410a77a1 100644
--- a/third_party/WebKit/Source/platform/geometry/Region.cpp
+++ b/third_party/WebKit/Source/platform/geometry/Region.cpp
@@ -54,7 +54,7 @@ Vector<IntRect> Region::rects() const {
int x = *segment;
int width = *(segment + 1) - x;
- rects.append(IntRect(x, y, width, height));
+ rects.push_back(IntRect(x, y, width, height));
}
}
@@ -239,7 +239,7 @@ Region::Shape::Shape(size_t segmentsCapacity, size_t spansCapacity) {
}
void Region::Shape::appendSpan(int y) {
- m_spans.append(Span(y, m_segments.size()));
+ m_spans.push_back(Span(y, m_segments.size()));
}
bool Region::Shape::canCoalesce(SegmentIterator begin, SegmentIterator end) {
@@ -280,7 +280,7 @@ void Region::Shape::appendSpans(const Shape& shape,
}
void Region::Shape::appendSegment(int x) {
- m_segments.append(x);
+ m_segments.push_back(x);
}
Region::Shape::SpanIterator Region::Shape::spansBegin() const {
@@ -469,7 +469,7 @@ Region::Shape Region::Shape::shapeOperation(const Shape& shape1,
}
if (flag == Operation::opCode || oldFlag == Operation::opCode)
- segments.append(x);
+ segments.push_back(x);
oldFlag = flag;
}

Powered by Google App Engine
This is Rietveld 408576698