Index: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp |
index 4553f3dc5f0c406a1be30e5091c6a15b91c9f9f3..8e9e5e7d8e65f536a5b76731152e43e215d1fe44 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp |
@@ -91,9 +91,9 @@ std::unique_ptr<JSONArray> DisplayItemList::subsequenceAsJSON( |
} |
#ifndef NDEBUG |
if ((options & ShowPaintRecords) && displayItem.isDrawing()) { |
- if (const PaintRecord* record = |
- static_cast<const DrawingDisplayItem&>(displayItem) |
- .GetPaintRecord()) { |
+ const DrawingDisplayItem& item = |
+ static_cast<const DrawingDisplayItem&>(displayItem); |
+ if (const PaintRecord* record = item.GetPaintRecord().get()) { |
json->setString("record", recordAsDebugString(record)); |
} |
} |