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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.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/PropertyTreeState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
index 8f2317a75fc1dba07ef262829306ce000d3fb0de..852b5243edb25b2eb73911ebda9fa37f3370faaf 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp
@@ -73,4 +73,13 @@ const PropertyTreeState* PropertyTreeStateIterator::next() {
return nullptr;
}
+#if DCHECK_IS_ON()
+
+String PropertyTreeState::toTreeString() const {
+ return transform()->toTreeString() + "\n" + clip()->toTreeString() + "\n" +
+ effect()->toTreeString() + "\n" + scroll()->toTreeString();
+}
+
+#endif
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698