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); |