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

Unified Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 2573883002: Refactor PaintChunkProperties to use PropertyTreeState (Closed)
Patch Set: none Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
diff --git a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
index 732da438d5408d7074b3c4d848ee23866a2c638f..4d40dd1df40d944254fcbbf6217e22f34e93ed4e 100644
--- a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
+++ b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
@@ -78,33 +78,33 @@ void PrintTo(const PaintChunk& chunk, std::ostream* os) {
void PrintTo(const PaintChunkProperties& properties, std::ostream* os) {
*os << "PaintChunkProperties(";
bool printedProperty = false;
- if (properties.transform) {
+ if (properties.propertyTreeState.transform()) {
*os << "transform=";
- PrintTo(*properties.transform, os);
+ PrintTo(*properties.propertyTreeState.transform(), os);
printedProperty = true;
}
- if (properties.clip) {
+ if (properties.propertyTreeState.clip()) {
if (printedProperty)
*os << ", ";
*os << "clip=";
- PrintTo(*properties.clip, os);
+ PrintTo(*properties.propertyTreeState.clip(), os);
printedProperty = true;
}
- if (properties.effect) {
+ if (properties.propertyTreeState.effect()) {
if (printedProperty)
*os << ", ";
*os << "effect=";
- PrintTo(*properties.effect, os);
+ PrintTo(*properties.propertyTreeState.effect(), os);
printedProperty = true;
}
- if (properties.scroll) {
+ if (properties.propertyTreeState.scroll()) {
if (printedProperty)
*os << ", ";
*os << "scroll=";
- PrintTo(*properties.scroll, os);
+ PrintTo(*properties.propertyTreeState.scroll(), os);
printedProperty = true;
}

Powered by Google App Engine
This is Rietveld 408576698