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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp

Issue 2345403003: Add background attachment fixed main thread scrolling reason [spv2] (Closed)
Patch Set: Update test that was written for PaintArtifactCompositor's reasons update Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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
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->hasMainThreadScrollingReasons(MainThreadScrol lingReason::kHasBackgroundAttachmentFixedObjects) ? "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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 534
533 String paintPropertyTreeGraph(const blink::FrameView& frameView) 535 String paintPropertyTreeGraph(const blink::FrameView& frameView)
534 { 536 {
535 blink::PaintPropertyTreeGraphBuilder builder; 537 blink::PaintPropertyTreeGraphBuilder builder;
536 StringBuilder stringBuilder; 538 StringBuilder stringBuilder;
537 builder.generateTreeGraph(frameView, stringBuilder); 539 builder.generateTreeGraph(frameView, stringBuilder);
538 return stringBuilder.toString(); 540 return stringBuilder.toString();
539 } 541 }
540 542
541 #endif 543 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698