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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp

Issue 2638763003: Move property tree debugging code to platform/graphics/paint/. (Closed)
Patch Set: none Created 3 years, 11 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/core/paint/PaintPropertyTreePrinterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp
index c0a16dc9011b5b802226d538b1ad75902761e83e..82cc32000d772757455b486d3be2886ed3a20ea3 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp
@@ -84,8 +84,8 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleTransformTreePath) {
document().getElementById("transform")->layoutObject();
const auto* transformedObjectProperties =
transformedObject->paintProperties();
- String transformPathAsString = transformPaintPropertyPathAsString(
- transformedObjectProperties->transform());
+ String transformPathAsString =
+ transformedObjectProperties->transform()->toTreeString();
EXPECT_THAT(transformPathAsString.ascii().data(),
testing::MatchesRegex("root .* transform.*"
" .* transform.*"
@@ -100,8 +100,7 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleClipTreePath) {
LayoutObject* clippedObject =
document().getElementById("clip")->layoutObject();
const auto* clippedObjectProperties = clippedObject->paintProperties();
- String clipPathAsString =
- clipPaintPropertyPathAsString(clippedObjectProperties->cssClip());
+ String clipPathAsString = clippedObjectProperties->cssClip()->toTreeString();
EXPECT_THAT(clipPathAsString.ascii().data(),
testing::MatchesRegex("root .* rect.*"
" .* rect.*"
@@ -113,8 +112,7 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleEffectTreePath) {
LayoutObject* effectObject =
document().getElementById("effect")->layoutObject();
const auto* effectObjectProperties = effectObject->paintProperties();
- String effectPathAsString =
- effectPaintPropertyPathAsString(effectObjectProperties->effect());
+ String effectPathAsString = effectObjectProperties->effect()->toTreeString();
EXPECT_THAT(effectPathAsString.ascii().data(),
testing::MatchesRegex("root .* opacity.*"
" .* opacity.*"));
@@ -128,8 +126,7 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleScrollTreePath) {
LayoutObject* scrollObject =
document().getElementById("scroll")->layoutObject();
const auto* scrollObjectProperties = scrollObject->paintProperties();
- String scrollPathAsString =
- scrollPaintPropertyPathAsString(scrollObjectProperties->scroll());
+ String scrollPathAsString = scrollObjectProperties->scroll()->toTreeString();
EXPECT_THAT(scrollPathAsString.ascii().data(),
testing::MatchesRegex("root .* scroll.*"
" .* scroll.*"));

Powered by Google App Engine
This is Rietveld 408576698