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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp

Issue 2254543004: cc : Delete LayerImpl::transform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use test properties transform Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
index 70714bec70b41a542210adbb353d1930ace00d68..6c6e6f86bc052f645e8de18e61f7ece200338fdd 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp
@@ -44,7 +44,7 @@ public:
void SetLayerPropertiesForTesting(LayerImpl* layer)
{
- layer->SetTransform(gfx::Transform());
+ layer->test_properties()->transform = gfx::Transform();
layer->SetPosition(gfx::PointF());
layer->SetBounds(gfx::Size(100, 100));
layer->Set3dSortingContextId(0);
@@ -118,7 +118,7 @@ TEST_F(CompositorMutableStateTest, MutableStateMutableProperties)
EXPECT_TRUE(state.get());
EXPECT_EQ(1.0, rootLayer()->Opacity());
- EXPECT_EQ(gfx::Transform().ToString(), rootLayer()->transform().ToString());
+ EXPECT_EQ(gfx::Transform().ToString(), rootLayer()->Transform().ToString());
EXPECT_EQ(0.0, layer->CurrentScrollOffset().x());
EXPECT_EQ(0.0, layer->CurrentScrollOffset().y());
@@ -129,7 +129,7 @@ TEST_F(CompositorMutableStateTest, MutableStateMutableProperties)
state->setScrollTop(1.0);
EXPECT_EQ(0.5, rootLayer()->Opacity());
- EXPECT_EQ(zero.ToString(), rootLayer()->transform().ToString());
+ EXPECT_EQ(zero.ToString(), rootLayer()->Transform().ToString());
EXPECT_EQ(1.0, layer->CurrentScrollOffset().x());
EXPECT_EQ(1.0, layer->CurrentScrollOffset().y());
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698