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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 }; | 479 }; |
480 | 480 |
481 const char* PaintPropertyTreeGraphBuilder::s_layoutNodeColor = "black"; | 481 const char* PaintPropertyTreeGraphBuilder::s_layoutNodeColor = "black"; |
482 const char* PaintPropertyTreeGraphBuilder::s_transformNodeColor = "green"; | 482 const char* PaintPropertyTreeGraphBuilder::s_transformNodeColor = "green"; |
483 const char* PaintPropertyTreeGraphBuilder::s_clipNodeColor = "blue"; | 483 const char* PaintPropertyTreeGraphBuilder::s_clipNodeColor = "blue"; |
484 const char* PaintPropertyTreeGraphBuilder::s_effectNodeColor = "black"; | 484 const char* PaintPropertyTreeGraphBuilder::s_effectNodeColor = "black"; |
485 | 485 |
486 } // namespace { | 486 } // namespace { |
487 } // namespace blink | 487 } // namespace blink |
488 | 488 |
| 489 CORE_EXPORT void showAllPropertyTrees(const blink::FrameView& rootFrame) |
| 490 { |
| 491 showTransformPropertyTree(rootFrame); |
| 492 showClipPropertyTree(rootFrame); |
| 493 showEffectPropertyTree(rootFrame); |
| 494 } |
| 495 |
489 void showTransformPropertyTree(const blink::FrameView& rootFrame) | 496 void showTransformPropertyTree(const blink::FrameView& rootFrame) |
490 { | 497 { |
491 blink::PropertyTreePrinter<blink::TransformPaintPropertyNode>().showTree(roo
tFrame); | 498 blink::PropertyTreePrinter<blink::TransformPaintPropertyNode>().showTree(roo
tFrame); |
492 } | 499 } |
493 | 500 |
494 void showClipPropertyTree(const blink::FrameView& rootFrame) | 501 void showClipPropertyTree(const blink::FrameView& rootFrame) |
495 { | 502 { |
496 blink::PropertyTreePrinter<blink::ClipPaintPropertyNode>().showTree(rootFram
e); | 503 blink::PropertyTreePrinter<blink::ClipPaintPropertyNode>().showTree(rootFram
e); |
497 } | 504 } |
498 | 505 |
(...skipping 29 matching lines...) Expand all Loading... |
528 | 535 |
529 String paintPropertyTreeGraph(const blink::FrameView& frameView) | 536 String paintPropertyTreeGraph(const blink::FrameView& frameView) |
530 { | 537 { |
531 blink::PaintPropertyTreeGraphBuilder builder; | 538 blink::PaintPropertyTreeGraphBuilder builder; |
532 StringBuilder stringBuilder; | 539 StringBuilder stringBuilder; |
533 builder.generateTreeGraph(frameView, stringBuilder); | 540 builder.generateTreeGraph(frameView, stringBuilder); |
534 return stringBuilder.toString(); | 541 return stringBuilder.toString(); |
535 } | 542 } |
536 | 543 |
537 #endif | 544 #endif |
OLD | NEW |