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

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

Issue 2299533002: WIP: Construct SPV2's scroll paint property tree (Closed)
Patch Set: Add more paint property builder tests, update comments/documentation" 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 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 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

Powered by Google App Engine
This is Rietveld 408576698