| Index: third_party/WebKit/Source/platform/exported/WebFont.cpp
|
| diff --git a/third_party/WebKit/Source/platform/exported/WebFont.cpp b/third_party/WebKit/Source/platform/exported/WebFont.cpp
|
| index 2c8c9b181dcd95732340b695d3d92e53f5e04294..dc55e85d5ccfc1b9e011b4d8275a465a872ed9b1 100644
|
| --- a/third_party/WebKit/Source/platform/exported/WebFont.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/WebFont.cpp
|
| @@ -107,8 +107,9 @@ void WebFont::drawText(WebCanvas* canvas, const WebTextRun& run,
|
| context.drawText(m_private->getFont(), runInfo, leftBaseline);
|
| context.restore();
|
| }
|
| -
|
| - pictureBuilder.endRecording()->playback(canvas);
|
| + RefPtr<const SkPicture> recording = pictureBuilder.endRecording();
|
| + if (recording)
|
| + recording->playback(canvas);
|
| }
|
|
|
| int WebFont::calculateWidth(const WebTextRun& run) const
|
|
|