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

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

Issue 2831683003: Refactor to centralize code which decides whether ObjectPaintProperties are needed. (Closed)
Patch Set: none Created 3 years, 8 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/PaintPropertyTreeUpdateTests.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
index 9fdb15784eac0ec38aeca66984bdacdcc310d5f1..36327494b089d2e168868764dd70a9e505d3e188 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp
@@ -552,7 +552,7 @@ TEST_P(PaintPropertyTreeUpdateTest,
// Removing the animation should remove the transform node.
target->removeAttribute(HTMLNames::classAttr);
GetDocument().View()->UpdateAllLifecyclePhases();
- EXPECT_EQ(nullptr, properties->Transform());
+ EXPECT_EQ(nullptr, target->GetLayoutObject()->PaintProperties());
pdr. 2017/04/20 22:56:28 Can you add a comment here so we don't accidentall
chrishtr 2017/04/21 01:20:02 Added comment.
}
TEST_P(PaintPropertyTreeUpdateTest,
@@ -566,7 +566,7 @@ TEST_P(PaintPropertyTreeUpdateTest,
// Removing the animation should remove the effect node.
target->removeAttribute(HTMLNames::classAttr);
GetDocument().View()->UpdateAllLifecyclePhases();
- EXPECT_EQ(nullptr, properties->Effect());
+ EXPECT_EQ(nullptr, target->GetLayoutObject()->PaintProperties());
}
TEST_P(PaintPropertyTreeUpdateTest,

Powered by Google App Engine
This is Rietveld 408576698