| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 0cda260965ad4a195be89ab2cd3e462c8d1cd65b..2dae9193d9c32f32b75eeb6aa231e20bf0b40965 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -61,6 +61,7 @@
|
| #include "platform/geometry/DoubleRect.h"
|
| #include "platform/geometry/FloatQuad.h"
|
| #include "platform/geometry/FloatRoundedRect.h"
|
| +#include "wtf/PtrUtil.h"
|
| #include <algorithm>
|
| #include <math.h>
|
|
|
| @@ -4199,7 +4200,7 @@ void LayoutBox::addLayoutOverflow(const LayoutRect& rect)
|
| }
|
|
|
| if (!m_overflow)
|
| - m_overflow = adoptPtr(new BoxOverflowModel(clientBox, borderBoxRect()));
|
| + m_overflow = wrapUnique(new BoxOverflowModel(clientBox, borderBoxRect()));
|
|
|
| m_overflow->addLayoutOverflow(overflowRect);
|
| }
|
| @@ -4214,7 +4215,7 @@ void LayoutBox::addSelfVisualOverflow(const LayoutRect& rect)
|
| return;
|
|
|
| if (!m_overflow)
|
| - m_overflow = adoptPtr(new BoxOverflowModel(noOverflowRect(), borderBox));
|
| + m_overflow = wrapUnique(new BoxOverflowModel(noOverflowRect(), borderBox));
|
|
|
| m_overflow->addSelfVisualOverflow(rect);
|
| }
|
| @@ -4232,7 +4233,7 @@ void LayoutBox::addContentsVisualOverflow(const LayoutRect& rect)
|
| return;
|
|
|
| if (!m_overflow)
|
| - m_overflow = adoptPtr(new BoxOverflowModel(noOverflowRect(), borderBox));
|
| + m_overflow = wrapUnique(new BoxOverflowModel(noOverflowRect(), borderBox));
|
| m_overflow->addContentsVisualOverflow(rect);
|
| }
|
|
|
|
|