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

Side by Side Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 2657863004: Move scroll paint property nodes to be owned by the transform tree (Closed)
Patch Set: Rebase & remove parens Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "platform/testing/PaintPrinters.h" 5 #include "platform/testing/PaintPrinters.h"
6 6
7 #include "platform/graphics/paint/PaintChunk.h" 7 #include "platform/graphics/paint/PaintChunk.h"
8 #include "platform/graphics/paint/PaintChunkProperties.h" 8 #include "platform/graphics/paint/PaintChunkProperties.h"
9 #include <iomanip> // NOLINT 9 #include <iomanip> // NOLINT
10 #include <ostream> // NOLINT 10 #include <ostream> // NOLINT
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 if (properties.propertyTreeState.effect()) { 77 if (properties.propertyTreeState.effect()) {
78 if (printedProperty) 78 if (printedProperty)
79 *os << ", "; 79 *os << ", ";
80 *os << "effect="; 80 *os << "effect=";
81 PrintTo(*properties.propertyTreeState.effect(), os); 81 PrintTo(*properties.propertyTreeState.effect(), os);
82 printedProperty = true; 82 printedProperty = true;
83 } 83 }
84 84
85 if (properties.propertyTreeState.scroll()) {
86 if (printedProperty)
87 *os << ", ";
88 *os << "scroll=";
89 PrintTo(*properties.propertyTreeState.scroll(), os);
90 printedProperty = true;
91 }
92
93 if (printedProperty) 85 if (printedProperty)
94 *os << ", "; 86 *os << ", ";
95 *os << "backfaceHidden=" << properties.backfaceHidden; 87 *os << "backfaceHidden=" << properties.backfaceHidden;
96 88
97 *os << ")"; 89 *os << ")";
98 } 90 }
99 91
100 void PrintTo(const ClipPaintPropertyNode& node, std::ostream* os) { 92 void PrintTo(const ClipPaintPropertyNode& node, std::ostream* os) {
101 *os << "ClipPaintPropertyNode(" << node.toString().ascii().data() << ")"; 93 *os << "ClipPaintPropertyNode(" << node.toString().ascii().data() << ")";
102 } 94 }
103 95
104 void PrintTo(const TransformPaintPropertyNode& node, std::ostream* os) { 96 void PrintTo(const TransformPaintPropertyNode& node, std::ostream* os) {
105 *os << "TransformPaintPropertyNode(" << node.toString().ascii().data() << ")"; 97 *os << "TransformPaintPropertyNode(" << node.toString().ascii().data() << ")";
106 } 98 }
107 99
108 void PrintTo(const EffectPaintPropertyNode& node, std::ostream* os) { 100 void PrintTo(const EffectPaintPropertyNode& node, std::ostream* os) {
109 *os << "EffectPaintPropertyNode(" << node.toString().ascii().data() << ")"; 101 *os << "EffectPaintPropertyNode(" << node.toString().ascii().data() << ")";
110 } 102 }
111 103
112 void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) { 104 void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) {
113 *os << "ScrollPaintPropertyNode(" << node.toString().ascii().data() << ")"; 105 *os << "ScrollPaintPropertyNode(" << node.toString().ascii().data() << ")";
114 } 106 }
115 107
116 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698