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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.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/ScrollPaintPropertyNode.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp b/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp
index f9b87e54f16540fc3598fa1179526c2f265f9e09..89f043502c8cd4ad13bd6f279fb8148073f26551 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp
@@ -4,6 +4,8 @@
#include "platform/graphics/paint/ScrollPaintPropertyNode.h"
+#include "platform/graphics/paint/PropertyTreeState.h"
+
namespace blink {
ScrollPaintPropertyNode* ScrollPaintPropertyNode::root() {
@@ -31,4 +33,13 @@ String ScrollPaintPropertyNode::toString() const {
mainThreadScrollingReasonsAsText.c_str());
}
+#if DCHECK_IS_ON()
+
+String ScrollPaintPropertyNode::toTreeString() const {
+ return blink::PropertyTreeStatePrinter<blink::ScrollPaintPropertyNode>()
+ .pathAsString(this);
+}
+
+#endif
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698