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 103445d0b6cb1138687a3fc9d22139fbdbff35f5..9ab70802a5f0b4e06cd3caa2c257a4165e1e9157 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp |
@@ -366,7 +366,7 @@ PassRefPtr<ShapeResult> ShapeResult::ApplySpacingToCopy( |
const TextRun& run) const { |
RefPtr<ShapeResult> result = ShapeResult::Create(*this); |
result->ApplySpacing(spacing, run, run.Rtl()); |
- return result.Release(); |
+ return result; |
} |
static inline float HarfBuzzPositionToFloat(hb_position_t value) { |
@@ -511,7 +511,7 @@ PassRefPtr<ShapeResult> ShapeResult::CreateForTabulationCharacters( |
result->has_vertical_offsets_ = |
font_data->PlatformData().IsVerticalAnyUpright(); |
result->runs_.push_back(std::move(run)); |
- return result.Release(); |
+ return result; |
} |
} // namespace blink |