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

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

Issue 2647063002: Move property tree debugging code to platform/graphics/paint/ (try #2) (Closed)
Patch Set: none Created 3 years, 11 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/ClipPaintPropertyNode.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp
index ced22943129794f07d23738da46a483d660bf39b..0a718c46c57d4c9b666cbfe9bc246b3a99e812fe 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp
@@ -5,6 +5,7 @@
#include "platform/graphics/paint/ClipPaintPropertyNode.h"
#include "platform/geometry/LayoutRect.h"
+#include "platform/graphics/paint/PropertyTreeState.h"
namespace blink {
@@ -24,4 +25,13 @@ String ClipPaintPropertyNode::toString() const {
compositingReasonsAsString(m_directCompositingReasons).ascii().data());
}
+#if DCHECK_IS_ON()
+
+String ClipPaintPropertyNode::toTreeString() const {
+ return blink::PropertyTreeStatePrinter<blink::ClipPaintPropertyNode>()
+ .pathAsString(this);
+}
+
+#endif
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698