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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 4bbb8953e4732e5b1e0c4cf164e46328d5023618..f71ba49861bffea331c43cadc52bd15a0879e6ca 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -44,6 +44,7 @@
#include "platform/geometry/TransformState.h"
#include "platform/graphics/paint/PaintController.h"
#include "public/platform/Platform.h"
+#include "wtf/PtrUtil.h"
#include <inttypes.h>
namespace blink {
@@ -243,7 +244,7 @@ void LayoutView::layout()
if (pageLogicalHeight() && shouldUsePrintingLayout()) {
m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = logicalWidth();
if (!m_fragmentationContext)
- m_fragmentationContext = adoptPtr(new ViewFragmentationContext(*this));
+ m_fragmentationContext = wrapUnique(new ViewFragmentationContext(*this));
} else if (m_fragmentationContext) {
m_fragmentationContext.reset();
}
@@ -952,7 +953,7 @@ bool LayoutView::usesCompositing() const
PaintLayerCompositor* LayoutView::compositor()
{
if (!m_compositor)
- m_compositor = adoptPtr(new PaintLayerCompositor(*this));
+ m_compositor = wrapUnique(new PaintLayerCompositor(*this));
return m_compositor.get();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698