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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.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/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 13a0d462fe1326b501def784c38fc932d3ae4cb6..1767ac85ee30217f02418c0ec62e3aaa6f29f22d 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
@@ -36,7 +36,6 @@
#include "core/paint/InlineFlowBoxPainter.h"
#include "core/style/ShadowList.h"
#include "platform/fonts/Font.h"
-#include "wtf/PtrUtil.h"
#include <algorithm>
#include <math.h>
@@ -953,7 +952,7 @@ void InlineFlowBox::setLayoutOverflow(const LayoutRect& rect, const LayoutRect&
return;
if (!m_overflow)
- m_overflow = wrapUnique(new SimpleOverflowModel(frameBox, frameBox));
+ m_overflow = adoptPtr(new SimpleOverflowModel(frameBox, frameBox));
m_overflow->setLayoutOverflow(rect);
}
@@ -965,7 +964,7 @@ void InlineFlowBox::setVisualOverflow(const LayoutRect& rect, const LayoutRect&
return;
if (!m_overflow)
- m_overflow = wrapUnique(new SimpleOverflowModel(frameBox, frameBox));
+ m_overflow = adoptPtr(new SimpleOverflowModel(frameBox, frameBox));
m_overflow->setVisualOverflow(rect);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineFlowBox.h ('k') | third_party/WebKit/Source/core/layout/line/RootInlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698