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 e786d3444975bfe87a1f2f26bf3d749131c7e8b0..860c6ed8631634a99b3d65e3ad6f0f977f59f560 100644 |
--- a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp |
+++ b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp |
@@ -100,6 +100,14 @@ void PrintTo(const PaintChunkProperties& properties, std::ostream* os) |
printedProperty = true; |
} |
+ if (properties.scroll) { |
+ if (printedProperty) |
+ *os << ", "; |
+ *os << "scroll="; |
+ PrintTo(*properties.scroll, os); |
+ printedProperty = true; |
+ } |
+ |
if (printedProperty) |
*os << ", "; |
*os << "backfaceHidden=" << properties.backfaceHidden; |
@@ -121,4 +129,19 @@ void PrintTo(const EffectPaintPropertyNode& effect, std::ostream* os) |
*os << "EffectPaintPropertyNode(opacity=" << effect.opacity() << ")"; |
} |
+void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) |
+{ |
+ *os << "ScrollPaintPropertyNode(clip="; |
+ PrintTo(node.clip(), os); |
+ *os << ", bounds="; |
+ PrintTo(node.bounds(), os); |
+ *os << ", userScrollableHorizontal=" << node.userScrollableHorizontal(); |
+ *os << ", userScrollableVertical=" << node.userScrollableVertical(); |
+ *os << ", scrollOffsetTranslation="; |
+ PrintPointer(node.scrollOffsetTranslation(), *os); |
+ *os << ", parent="; |
+ PrintPointer(node.parent(), *os); |
+ *os << ")"; |
+} |
+ |
} // namespace blink |