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

Unified Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 2116693002: PaintChunk::id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CommitOnTheWay
Patch Set: Address chrishtr's comments. Created 4 years, 5 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/testing/PaintPrinters.cpp
diff --git a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
index abd63837c086ebcba29cc8e762556c7b738960c6..8cd0db3ff0ce751ac912a7db9e59b467b8929bcf 100644
--- a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
+++ b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
@@ -45,7 +45,19 @@ void PrintTo(const PaintChunk& chunk, std::ostream* os)
{
*os << "PaintChunk(begin=" << chunk.beginIndex
<< ", end=" << chunk.endIndex
- << ", props=";
+ << ", id=";
+ if (!chunk.id) {
+ *os << "null";
+ } else {
+ *os << "(" << &chunk.id->client << ", ";
+#ifndef NDEBUG
+ *os << DisplayItem::typeAsDebugString(chunk.id->type);
+#else
+ *os << static_cast<int>(chunk.id->type);
+#endif
+ *os << ")";
+ }
+ *os << ", props=";
PrintTo(chunk.properties, os);
*os << ", bounds=";
PrintTo(chunk.bounds, os);

Powered by Google App Engine
This is Rietveld 408576698