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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 37f7d4a580967fc64ff1f5eee3e033bbee52aad5..02920656822221ef7998e290161f85cbf559871f 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -83,7 +83,6 @@
#include "platform/transforms/TransformationMatrix.h"
#include "platform/transforms/TranslateTransformOperation.h"
#include "public/platform/Platform.h"
-#include "wtf/PtrUtil.h"
#include "wtf/StdLibExtras.h"
#include "wtf/allocator/Partitions.h"
#include "wtf/text/CString.h"
@@ -983,7 +982,7 @@ void PaintLayer::updateAncestorDependentCompositingInputs(const AncestorDependen
if (rareCompositingInputs.isDefault())
m_rareAncestorDependentCompositingInputs.reset();
else
- m_rareAncestorDependentCompositingInputs = wrapUnique(new RareAncestorDependentCompositingInputs(rareCompositingInputs));
+ m_rareAncestorDependentCompositingInputs = adoptPtr(new RareAncestorDependentCompositingInputs(rareCompositingInputs));
m_hasAncestorWithClipPath = hasAncestorWithClipPath;
m_needsAncestorDependentCompositingInputsUpdate = false;
}
@@ -1452,7 +1451,7 @@ void PaintLayer::updateReflectionInfo(const ComputedStyle* oldStyle)
ASSERT(!oldStyle || !layoutObject()->style()->reflectionDataEquivalent(oldStyle));
if (layoutObject()->hasReflection()) {
if (!ensureRareData().reflectionInfo)
- m_rareData->reflectionInfo = wrapUnique(new PaintLayerReflectionInfo(*layoutBox()));
+ m_rareData->reflectionInfo = adoptPtr(new PaintLayerReflectionInfo(*layoutBox()));
m_rareData->reflectionInfo->updateAfterStyleChange(oldStyle);
} else if (m_rareData && m_rareData->reflectionInfo) {
m_rareData->reflectionInfo = nullptr;
@@ -1463,7 +1462,7 @@ void PaintLayer::updateStackingNode()
{
ASSERT(!m_stackingNode);
if (requiresStackingNode())
- m_stackingNode = wrapUnique(new PaintLayerStackingNode(this));
+ m_stackingNode = adoptPtr(new PaintLayerStackingNode(this));
else
m_stackingNode = nullptr;
}
@@ -2334,7 +2333,7 @@ void PaintLayer::ensureCompositedLayerMapping()
if (m_rareData && m_rareData->compositedLayerMapping)
return;
- ensureRareData().compositedLayerMapping = wrapUnique(new CompositedLayerMapping(*this));
+ ensureRareData().compositedLayerMapping = adoptPtr(new CompositedLayerMapping(*this));
m_rareData->compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateSubtree);
updateOrRemoveFilterEffectBuilder();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698