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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
index 70cbe4c0154b5391e9ff77032e88dcbb18bf8927..69abe7eabdc3739965165e027b918f4223fe5efa 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp
@@ -4,6 +4,8 @@
#include "platform/graphics/paint/TransformPaintPropertyNode.h"
+#include "platform/graphics/paint/PropertyTreeState.h"
+
namespace blink {
TransformPaintPropertyNode* TransformPaintPropertyNode::root() {
@@ -26,4 +28,13 @@ String TransformPaintPropertyNode::toString() const {
m_compositorElementId.primaryId, m_compositorElementId.secondaryId);
}
+#if DCHECK_IS_ON()
+
+String TransformPaintPropertyNode::toTreeString() const {
+ return blink::PropertyTreeStatePrinter<blink::TransformPaintPropertyNode>()
+ .pathAsString(this);
+}
+
+#endif
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698