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

Unified Diff: Source/platform/graphics/ContiguousContainer.h

Issue 1323263002: Show debug information for invalid display items (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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: Source/platform/graphics/ContiguousContainer.h
diff --git a/Source/platform/graphics/ContiguousContainer.h b/Source/platform/graphics/ContiguousContainer.h
index bfea148e71b3ae6616d8fd4c9b1a6d374b7015b6..547a132ce73bf129e447197e41a3db694d7fca23 100644
--- a/Source/platform/graphics/ContiguousContainer.h
+++ b/Source/platform/graphics/ContiguousContainer.h
@@ -176,7 +176,11 @@ public:
ASSERT(size >= sizeof(BaseElementType));
void* newItem = allocate(size);
memcpy(newItem, static_cast<void*>(&item), size);
- new (&item) BaseElementType;
+ new (&item) BaseElementType(
+#ifndef NDEBUG
+ item.asDebugString()
+#endif
+ );
return *static_cast<BaseElementType*>(newItem);
}
« no previous file with comments | « no previous file | Source/platform/graphics/paint/DisplayItem.h » ('j') | Source/platform/graphics/paint/DisplayItem.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698