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

Unified Diff: third_party/WebKit/Source/core/paint/BoxBorderPainter.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/paint/BoxBorderPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp b/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp
index c490280307c12fe2a13f444cb0c219c71e25a1ca..27d7632d91f350175e1ab37e4f7fc03870bd88ec 100644
--- a/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp
@@ -409,7 +409,7 @@ struct BoxBorderPainter::ComplexBorderInfo {
BoxSide side = static_cast<BoxSide>(i);
if (includesEdge(borderPainter.m_visibleEdgeSet, side))
- sortedSides.append(side);
+ sortedSides.push_back(side);
}
DCHECK(!sortedSides.isEmpty());
@@ -459,13 +459,13 @@ struct BoxBorderPainter::ComplexBorderInfo {
DCHECK_GT(edgeAlpha, 0u);
DCHECK_GE(edgeAlpha, currentAlpha);
if (edgeAlpha != currentAlpha) {
- opacityGroups.append(OpacityGroup(edgeAlpha));
+ opacityGroups.push_back(OpacityGroup(edgeAlpha));
currentAlpha = edgeAlpha;
}
DCHECK(!opacityGroups.isEmpty());
OpacityGroup& currentGroup = opacityGroups.back();
- currentGroup.sides.append(side);
+ currentGroup.sides.push_back(side);
currentGroup.edgeFlags |= edgeFlagForSide(side);
}
@@ -1005,8 +1005,8 @@ void BoxBorderPainter::drawBoxSideFromPath(GraphicsContext& graphicsContext,
}
DashArray lineDash;
- lineDash.append(dashLength);
- lineDash.append(gapLength);
+ lineDash.push_back(dashLength);
+ lineDash.push_back(gapLength);
graphicsContext.setLineDash(lineDash, dashLength);
}

Powered by Google App Engine
This is Rietveld 408576698