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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge. 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/line/InlineFlowBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
index d41e8f7f7d1f39ef9e5710e884f73fb6c192e5bd..ba2185437441e96512ae9e5103e807dd6328a27b 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
@@ -36,6 +36,7 @@
#include "core/paint/InlineFlowBoxPainter.h"
#include "core/style/ShadowList.h"
#include "platform/fonts/Font.h"
+#include "wtf/PtrUtil.h"
#include <algorithm>
#include <math.h>
@@ -951,7 +952,7 @@ void InlineFlowBox::setLayoutOverflow(const LayoutRect& rect, const LayoutRect&
return;
if (!m_overflow)
- m_overflow = adoptPtr(new SimpleOverflowModel(frameBox, frameBox));
+ m_overflow = wrapUnique(new SimpleOverflowModel(frameBox, frameBox));
m_overflow->setLayoutOverflow(rect);
}
@@ -963,7 +964,7 @@ void InlineFlowBox::setVisualOverflow(const LayoutRect& rect, const LayoutRect&
return;
if (!m_overflow)
- m_overflow = adoptPtr(new SimpleOverflowModel(frameBox, frameBox));
+ m_overflow = wrapUnique(new SimpleOverflowModel(frameBox, frameBox));
m_overflow->setVisualOverflow(rect);
}

Powered by Google App Engine
This is Rietveld 408576698