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

Unified Diff: Source/platform/graphics/paint/DisplayItem.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/paint/DisplayItem.h
diff --git a/Source/platform/graphics/paint/DisplayItem.h b/Source/platform/graphics/paint/DisplayItem.h
index 0da40fce703c9f7abcd21454f36ee1eb15d5ac22..957556b9352d4b9494a1924332bf64522abed63b 100644
--- a/Source/platform/graphics/paint/DisplayItem.h
+++ b/Source/platform/graphics/paint/DisplayItem.h
@@ -338,14 +338,18 @@ private:
// constructed at the source location.
template <typename T, unsigned alignment> friend class ContiguousContainer;
- DisplayItem()
+ DisplayItem(
+#ifndef NDEBUG
+ const String& originalDebugString
+#endif
+ )
: m_client(nullptr)
, m_scope(0)
, m_type(UninitializedType)
, m_derivedSize(sizeof(*this))
, m_skippedCache(false)
-#ifndef NDEBUG
- , m_clientDebugString("invalid")
+#ifdef NDEBUG
+ , m_clientDebugString(originalDebugString)
#endif
{ }

Powered by Google App Engine
This is Rietveld 408576698