| Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| index e05e7b13da28da65a3873b572c727bd5b5916c04..9367176addd14a411c74aebe215e2155d280a86b 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| @@ -34,9 +34,7 @@
|
| #include "platform/fonts/Font.h"
|
| #include "platform/fonts/shaping/ShapeResultInlineHeaders.h"
|
| #include "platform/fonts/shaping/ShapeResultSpacing.h"
|
| -#include "wtf/PtrUtil.h"
|
| #include <hb.h>
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -156,7 +154,7 @@ ShapeResult::ShapeResult(const ShapeResult& other)
|
| {
|
| m_runs.reserveCapacity(other.m_runs.size());
|
| for (const auto& run : other.m_runs)
|
| - m_runs.append(wrapUnique(new ShapeResult::RunInfo(*run)));
|
| + m_runs.append(adoptPtr(new ShapeResult::RunInfo(*run)));
|
| }
|
|
|
| ShapeResult::~ShapeResult()
|
| @@ -280,11 +278,11 @@ static inline float harfBuzzPositionToFloat(hb_position_t value)
|
| return static_cast<float>(value) / (1 << 16);
|
| }
|
|
|
| -void ShapeResult::insertRun(std::unique_ptr<ShapeResult::RunInfo> runToInsert,
|
| +void ShapeResult::insertRun(PassOwnPtr<ShapeResult::RunInfo> runToInsert,
|
| unsigned startGlyph, unsigned numGlyphs, hb_buffer_t* harfBuzzBuffer)
|
| {
|
| ASSERT(numGlyphs > 0);
|
| - std::unique_ptr<ShapeResult::RunInfo> run(std::move(runToInsert));
|
| + OwnPtr<ShapeResult::RunInfo> run(std::move(runToInsert));
|
| ASSERT(numGlyphs == run->m_glyphData.size());
|
|
|
| const SimpleFontData* currentFontData = run->m_fontData.get();
|
|
|