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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.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/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index d41f3916ee503ef45e46243e0b0dac500a589f69..02e2e26be245aaf48b24b8f9119182efa6c378ba 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -1546,7 +1546,7 @@ void PaintLayer::appendSingleFragmentIgnoringPagination(
clipper().calculateRects(clipRectsContext, dirtyRect, fragment.layerBounds,
fragment.backgroundRect, fragment.foregroundRect,
offsetFromRoot);
- fragments.append(fragment);
+ fragments.push_back(fragment);
}
bool PaintLayer::shouldFragmentCompositedBounds(
@@ -1692,7 +1692,7 @@ void PaintLayer::collectFragments(
// cases, but there should be no reason to do so. Either filter them out
// here, or, even better: pass a better clip rectangle to the fragmentainer
// iterator, so that we won't end up with empty fragments here.
- fragments.append(fragment);
+ fragments.push_back(fragment);
}
}
@@ -2983,7 +2983,7 @@ FilterOperations PaintLayer::addReflectionToFilterOperations(
FilterOperations filterOperations = style.filter();
if (layoutObject()->hasReflection() && layoutObject()->isBox()) {
BoxReflection reflection = boxReflectionForPaintLayer(*this, style);
- filterOperations.operations().append(
+ filterOperations.operations().push_back(
BoxReflectFilterOperation::create(reflection));
}
return filterOperations;
@@ -3109,20 +3109,20 @@ void PaintLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const {
// composited layer. Skip reporting contents for non-composited layers as
// they'll get projected to the same layer as the bounding box.
if (compositingState() != NotComposited)
- rect.append(m_scrollableArea->overflowRect());
+ rect.push_back(m_scrollableArea->overflowRect());
rects.set(this, rect);
if (const PaintLayer* parentLayer = parent()) {
LayerHitTestRects::iterator iter = rects.find(parentLayer);
if (iter == rects.end()) {
rects.add(parentLayer, Vector<LayoutRect>())
- .storedValue->value.append(physicalBoundingBox(parentLayer));
+ .storedValue->value.push_back(physicalBoundingBox(parentLayer));
} else {
- iter->value.append(physicalBoundingBox(parentLayer));
+ iter->value.push_back(physicalBoundingBox(parentLayer));
}
}
} else {
- rect.append(logicalBoundingBox());
+ rect.push_back(logicalBoundingBox());
rects.set(this, rect);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698