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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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/PaintLayerStackingNode.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
index 3439d3424c10b38d9547dc7269e66fcfcfa8502f..b9908342aa5544e592e65ebd0fe1781f409a498d 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
@@ -158,8 +158,10 @@ void PaintLayerStackingNode::rebuildZOrderLists() {
if (childElement && childElement->isInTopLayer()) {
PaintLayer* layer = toLayoutBoxModelObject(child)->layer();
// Create the buffer if it doesn't exist yet.
- if (!m_posZOrderList)
- m_posZOrderList = wrapUnique(new Vector<PaintLayerStackingNode*>);
+ if (!m_posZOrderList) {
+ m_posZOrderList =
+ WTF::wrapUnique(new Vector<PaintLayerStackingNode*>);
+ }
m_posZOrderList->append(layer->stackingNode());
}
}
@@ -182,7 +184,7 @@ void PaintLayerStackingNode::collectLayers(
std::unique_ptr<Vector<PaintLayerStackingNode*>>& buffer =
(zIndex() >= 0) ? posBuffer : negBuffer;
if (!buffer)
- buffer = wrapUnique(new Vector<PaintLayerStackingNode*>);
+ buffer = WTF::wrapUnique(new Vector<PaintLayerStackingNode*>);
buffer->append(this);
}

Powered by Google App Engine
This is Rietveld 408576698