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

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

Issue 2430813002: Switch to shorter names for property tree storage and updates (Closed)
Patch Set: Created 4 years, 2 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 d9dda38e214feb6e595ebfb97820823943e49f6b..c0a16dc9011b5b802226d538b1ad75902761e83e 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp
@@ -82,8 +82,8 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleTransformTreePath) {
"0px);'></div>");
LayoutObject* transformedObject =
document().getElementById("transform")->layoutObject();
- const ObjectPaintProperties* transformedObjectProperties =
- transformedObject->objectPaintProperties();
+ const auto* transformedObjectProperties =
+ transformedObject->paintProperties();
String transformPathAsString = transformPaintPropertyPathAsString(
transformedObjectProperties->transform());
EXPECT_THAT(transformPathAsString.ascii().data(),
@@ -99,8 +99,7 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleClipTreePath) {
"40px);'></div>");
LayoutObject* clippedObject =
document().getElementById("clip")->layoutObject();
- const ObjectPaintProperties* clippedObjectProperties =
- clippedObject->objectPaintProperties();
+ const auto* clippedObjectProperties = clippedObject->paintProperties();
String clipPathAsString =
clipPaintPropertyPathAsString(clippedObjectProperties->cssClip());
EXPECT_THAT(clipPathAsString.ascii().data(),
@@ -113,8 +112,7 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleEffectTreePath) {
setBodyInnerHTML("<div id='effect' style='opacity: 0.9;'></div>");
LayoutObject* effectObject =
document().getElementById("effect")->layoutObject();
- const ObjectPaintProperties* effectObjectProperties =
- effectObject->objectPaintProperties();
+ const auto* effectObjectProperties = effectObject->paintProperties();
String effectPathAsString =
effectPaintPropertyPathAsString(effectObjectProperties->effect());
EXPECT_THAT(effectPathAsString.ascii().data(),
@@ -129,8 +127,7 @@ TEST_P(PaintPropertyTreePrinterTest, SimpleScrollTreePath) {
"</div>");
LayoutObject* scrollObject =
document().getElementById("scroll")->layoutObject();
- const ObjectPaintProperties* scrollObjectProperties =
- scrollObject->objectPaintProperties();
+ const auto* scrollObjectProperties = scrollObject->paintProperties();
String scrollPathAsString =
scrollPaintPropertyPathAsString(scrollObjectProperties->scroll());
EXPECT_THAT(scrollPathAsString.ascii().data(),

Powered by Google App Engine
This is Rietveld 408576698