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

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

Issue 2110893002: [Layout API] Use LayoutViewItem in PaintPropertyTreeBuilderTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/core/layout/api/LayoutItem.h ('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/core/paint/PaintPropertyTreeBuilderTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
index 80a4da496abba79ce6c567a94452e6957754bc79..55be3a8f0dab0ddf83531e6bd9181e902ad09dd5 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -4,7 +4,7 @@
#include "core/layout/LayoutTestHelper.h"
#include "core/layout/LayoutTreeAsText.h"
-#include "core/layout/LayoutView.h"
+#include "core/layout/api/LayoutViewItem.h"
#include "core/paint/ObjectPaintProperties.h"
#include "platform/graphics/paint/TransformPaintPropertyNode.h"
#include "platform/testing/UnitTestHelpers.h"
@@ -132,8 +132,8 @@ TEST_F(PaintPropertyTreeBuilderTest, FrameScrollingTraditional)
EXPECT_EQ(FloatRoundedRect(0, 0, 800, 600), frameView->contentClip()->clipRect());
EXPECT_EQ(nullptr, frameView->contentClip()->parent());
- LayoutView* layoutView = document().layoutView();
- ObjectPaintProperties* layoutViewProperties = layoutView->objectPaintProperties();
+ LayoutViewItem layoutViewItem = document().layoutViewItem();
+ ObjectPaintProperties* layoutViewProperties = layoutViewItem.objectPaintProperties();
EXPECT_EQ(nullptr, layoutViewProperties->scrollTranslation());
}
@@ -156,8 +156,8 @@ TEST_F(PaintPropertyTreeBuilderTest, DISABLED_FrameScrollingRootLayerScrolls)
EXPECT_EQ(TransformationMatrix(), frameView->scrollTranslation()->matrix());
EXPECT_EQ(frameView->preTranslation(), frameView->scrollTranslation()->parent());
- LayoutView* layoutView = document().layoutView();
- ObjectPaintProperties* layoutViewProperties = layoutView->objectPaintProperties();
+ LayoutViewItem layoutViewItem = document().layoutViewItem();
+ ObjectPaintProperties* layoutViewProperties = layoutViewItem.objectPaintProperties();
EXPECT_EQ(TransformationMatrix().translate(0, -100), layoutViewProperties->scrollTranslation()->matrix());
EXPECT_EQ(frameView->scrollTranslation(), layoutViewProperties->scrollTranslation()->parent());
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LayoutItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698