| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 stringBuilder.append(" scrollOffsetTranslation="); | 213 stringBuilder.append(" scrollOffsetTranslation="); |
| 214 stringBuilder.append(scrollOffset.toString()); | 214 stringBuilder.append(scrollOffset.toString()); |
| 215 stringBuilder.append(" clip="); | 215 stringBuilder.append(" clip="); |
| 216 stringBuilder.append(node->clip().toString()); | 216 stringBuilder.append(node->clip().toString()); |
| 217 stringBuilder.append(" bounds="); | 217 stringBuilder.append(" bounds="); |
| 218 stringBuilder.append(node->bounds().toString()); | 218 stringBuilder.append(node->bounds().toString()); |
| 219 stringBuilder.append(" userScrollableHorizontal="); | 219 stringBuilder.append(" userScrollableHorizontal="); |
| 220 stringBuilder.append(node->userScrollableHorizontal() ? "yes" : "no"); | 220 stringBuilder.append(node->userScrollableHorizontal() ? "yes" : "no"); |
| 221 stringBuilder.append(" userScrollableVertical="); | 221 stringBuilder.append(" userScrollableVertical="); |
| 222 stringBuilder.append(node->userScrollableVertical() ? "yes" : "no"); | 222 stringBuilder.append(node->userScrollableVertical() ? "yes" : "no"); |
| 223 stringBuilder.append(" hasBackgroundAttachmentFixedMainThreadScrollingRe
ason="); |
| 224 stringBuilder.append(node->hasBackgroundAttachmentFixedMainThreadScrolli
ngReason() ? "yes" : "no"); |
| 223 } | 225 } |
| 224 }; | 226 }; |
| 225 | 227 |
| 226 class PaintPropertyTreeGraphBuilder { | 228 class PaintPropertyTreeGraphBuilder { |
| 227 public: | 229 public: |
| 228 PaintPropertyTreeGraphBuilder() { } | 230 PaintPropertyTreeGraphBuilder() { } |
| 229 | 231 |
| 230 void generateTreeGraph(const FrameView& frameView, StringBuilder& stringBuil
der) | 232 void generateTreeGraph(const FrameView& frameView, StringBuilder& stringBuil
der) |
| 231 { | 233 { |
| 232 m_layout.str(""); | 234 m_layout.str(""); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 527 |
| 526 String paintPropertyTreeGraph(const blink::FrameView& frameView) | 528 String paintPropertyTreeGraph(const blink::FrameView& frameView) |
| 527 { | 529 { |
| 528 blink::PaintPropertyTreeGraphBuilder builder; | 530 blink::PaintPropertyTreeGraphBuilder builder; |
| 529 StringBuilder stringBuilder; | 531 StringBuilder stringBuilder; |
| 530 builder.generateTreeGraph(frameView, stringBuilder); | 532 builder.generateTreeGraph(frameView, stringBuilder); |
| 531 return stringBuilder.toString(); | 533 return stringBuilder.toString(); |
| 532 } | 534 } |
| 533 | 535 |
| 534 #endif | 536 #endif |
| OLD | NEW |