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 1767ac85ee30217f02418c0ec62e3aaa6f29f22d..13a0d462fe1326b501def784c38fc932d3ae4cb6 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> |
@@ -952,7 +953,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); |
} |
@@ -964,7 +965,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); |
} |