OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/paint/PaintPropertyTreePrinter.h" | 5 #include "core/paint/PaintPropertyTreePrinter.h" |
6 | 6 |
7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
9 #include "core/layout/LayoutPart.h" | 9 #include "core/layout/LayoutPart.h" |
10 #include "core/layout/LayoutView.h" | 10 #include "core/layout/LayoutView.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 }; | 476 }; |
477 | 477 |
478 const char* PaintPropertyTreeGraphBuilder::s_layoutNodeColor = "black"; | 478 const char* PaintPropertyTreeGraphBuilder::s_layoutNodeColor = "black"; |
479 const char* PaintPropertyTreeGraphBuilder::s_transformNodeColor = "green"; | 479 const char* PaintPropertyTreeGraphBuilder::s_transformNodeColor = "green"; |
480 const char* PaintPropertyTreeGraphBuilder::s_clipNodeColor = "blue"; | 480 const char* PaintPropertyTreeGraphBuilder::s_clipNodeColor = "blue"; |
481 const char* PaintPropertyTreeGraphBuilder::s_effectNodeColor = "black"; | 481 const char* PaintPropertyTreeGraphBuilder::s_effectNodeColor = "black"; |
482 | 482 |
483 } // namespace { | 483 } // namespace { |
484 } // namespace blink | 484 } // namespace blink |
485 | 485 |
| 486 CORE_EXPORT void showAllPropertyTrees(const blink::FrameView& rootFrame) |
| 487 { |
| 488 showTransformPropertyTree(rootFrame); |
| 489 showClipPropertyTree(rootFrame); |
| 490 showEffectPropertyTree(rootFrame); |
| 491 } |
| 492 |
486 void showTransformPropertyTree(const blink::FrameView& rootFrame) | 493 void showTransformPropertyTree(const blink::FrameView& rootFrame) |
487 { | 494 { |
488 blink::PropertyTreePrinter<blink::TransformPaintPropertyNode>().showTree(roo
tFrame); | 495 blink::PropertyTreePrinter<blink::TransformPaintPropertyNode>().showTree(roo
tFrame); |
489 } | 496 } |
490 | 497 |
491 void showClipPropertyTree(const blink::FrameView& rootFrame) | 498 void showClipPropertyTree(const blink::FrameView& rootFrame) |
492 { | 499 { |
493 blink::PropertyTreePrinter<blink::ClipPaintPropertyNode>().showTree(rootFram
e); | 500 blink::PropertyTreePrinter<blink::ClipPaintPropertyNode>().showTree(rootFram
e); |
494 } | 501 } |
495 | 502 |
(...skipping 29 matching lines...) Expand all Loading... |
525 | 532 |
526 String paintPropertyTreeGraph(const blink::FrameView& frameView) | 533 String paintPropertyTreeGraph(const blink::FrameView& frameView) |
527 { | 534 { |
528 blink::PaintPropertyTreeGraphBuilder builder; | 535 blink::PaintPropertyTreeGraphBuilder builder; |
529 StringBuilder stringBuilder; | 536 StringBuilder stringBuilder; |
530 builder.generateTreeGraph(frameView, stringBuilder); | 537 builder.generateTreeGraph(frameView, stringBuilder); |
531 return stringBuilder.toString(); | 538 return stringBuilder.toString(); |
532 } | 539 } |
533 | 540 |
534 #endif | 541 #endif |
OLD | NEW |