Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp

Issue 2743363006: Clean up cc/paint interfaces (Closed)
Patch Set: Fix PaintControllerTest v2 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
}
}

Powered by Google App Engine
This is Rietveld 408576698