Chromium Code Reviews| 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..2096153125109e4cb10db24742df3450fd19dd7c 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::treeAsString() const { |
| + return transform()->treeAsString() + "\n" + clip()->treeAsString() + "\n" + |
|
wkorman
2017/01/17 19:19:58
nit: StringBuilder here also could be worthwhile,
chrishtr
2017/01/17 22:06:45
Prefer to just leave it because it's debugging out
|
| + effect()->treeAsString() + "\n" + scroll()->treeAsString(); |
| +} |
| + |
| +#endif |
| + |
| } // namespace blink |