| OLD | NEW |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 *os << ", "; | 71 *os << ", "; |
| 72 first = false; | 72 first = false; |
| 73 PrintTo(r, os); | 73 PrintTo(r, os); |
| 74 }; | 74 }; |
| 75 *os << "]"; | 75 *os << "]"; |
| 76 } | 76 } |
| 77 | 77 |
| 78 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) { | 78 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) { |
| 79 *os << "PaintChunkProperties("; | 79 *os << "PaintChunkProperties("; |
| 80 bool printedProperty = false; | 80 bool printedProperty = false; |
| 81 if (properties.transform) { | 81 if (properties.propertyTreeState.transform()) { |
| 82 *os << "transform="; | 82 *os << "transform="; |
| 83 PrintTo(*properties.transform, os); | 83 PrintTo(*properties.propertyTreeState.transform(), os); |
| 84 printedProperty = true; | 84 printedProperty = true; |
| 85 } | 85 } |
| 86 | 86 |
| 87 if (properties.clip) { | 87 if (properties.propertyTreeState.clip()) { |
| 88 if (printedProperty) | 88 if (printedProperty) |
| 89 *os << ", "; | 89 *os << ", "; |
| 90 *os << "clip="; | 90 *os << "clip="; |
| 91 PrintTo(*properties.clip, os); | 91 PrintTo(*properties.propertyTreeState.clip(), os); |
| 92 printedProperty = true; | 92 printedProperty = true; |
| 93 } | 93 } |
| 94 | 94 |
| 95 if (properties.effect) { | 95 if (properties.propertyTreeState.effect()) { |
| 96 if (printedProperty) | 96 if (printedProperty) |
| 97 *os << ", "; | 97 *os << ", "; |
| 98 *os << "effect="; | 98 *os << "effect="; |
| 99 PrintTo(*properties.effect, os); | 99 PrintTo(*properties.propertyTreeState.effect(), os); |
| 100 printedProperty = true; | 100 printedProperty = true; |
| 101 } | 101 } |
| 102 | 102 |
| 103 if (properties.scroll) { | 103 if (properties.propertyTreeState.scroll()) { |
| 104 if (printedProperty) | 104 if (printedProperty) |
| 105 *os << ", "; | 105 *os << ", "; |
| 106 *os << "scroll="; | 106 *os << "scroll="; |
| 107 PrintTo(*properties.scroll, os); | 107 PrintTo(*properties.propertyTreeState.scroll(), os); |
| 108 printedProperty = true; | 108 printedProperty = true; |
| 109 } | 109 } |
| 110 | 110 |
| 111 if (printedProperty) | 111 if (printedProperty) |
| 112 *os << ", "; | 112 *os << ", "; |
| 113 *os << "backfaceHidden=" << properties.backfaceHidden; | 113 *os << "backfaceHidden=" << properties.backfaceHidden; |
| 114 | 114 |
| 115 *os << ")"; | 115 *os << ")"; |
| 116 } | 116 } |
| 117 | 117 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 136 *os << ", userScrollableHorizontal=" << node.userScrollableHorizontal(); | 136 *os << ", userScrollableHorizontal=" << node.userScrollableHorizontal(); |
| 137 *os << ", userScrollableVertical=" << node.userScrollableVertical(); | 137 *os << ", userScrollableVertical=" << node.userScrollableVertical(); |
| 138 *os << ", scrollOffsetTranslation="; | 138 *os << ", scrollOffsetTranslation="; |
| 139 PrintPointer(node.scrollOffsetTranslation(), *os); | 139 PrintPointer(node.scrollOffsetTranslation(), *os); |
| 140 *os << ", parent="; | 140 *os << ", parent="; |
| 141 PrintPointer(node.parent(), *os); | 141 PrintPointer(node.parent(), *os); |
| 142 *os << ")"; | 142 *os << ")"; |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| OLD | NEW |