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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp

Issue 2719813002: Rename classes that derived from EmptyLocalFrameClient. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/layout/compositing/CompositedLayerMapping.h" 5 #include "core/layout/compositing/CompositedLayerMapping.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/LayoutTestHelper.h" 9 #include "core/layout/LayoutTestHelper.h"
10 #include "core/layout/api/LayoutViewItem.h" 10 #include "core/layout/api/LayoutViewItem.h"
11 #include "core/page/scrolling/TopDocumentRootScrollerController.h" 11 #include "core/page/scrolling/TopDocumentRootScrollerController.h"
12 #include "core/paint/PaintLayer.h" 12 #include "core/paint/PaintLayer.h"
13 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 13 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
14 #include "public/platform/WebContentLayer.h" 14 #include "public/platform/WebContentLayer.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 typedef bool TestParamRootLayerScrolling; 19 typedef bool TestParamRootLayerScrolling;
20 class CompositedLayerMappingTest 20 class CompositedLayerMappingTest
21 : public testing::WithParamInterface<TestParamRootLayerScrolling>, 21 : public testing::WithParamInterface<TestParamRootLayerScrolling>,
22 private ScopedRootLayerScrollingForTest, 22 private ScopedRootLayerScrollingForTest,
23 public RenderingTest { 23 public RenderingTest {
24 public: 24 public:
25 CompositedLayerMappingTest() 25 CompositedLayerMappingTest()
26 : ScopedRootLayerScrollingForTest(GetParam()), 26 : ScopedRootLayerScrollingForTest(GetParam()),
27 RenderingTest(SingleChildFrameLoaderClient::create()) {} 27 RenderingTest(SingleChildLocalFrameClient::create()) {}
28 28
29 protected: 29 protected:
30 IntRect recomputeInterestRect(const GraphicsLayer* graphicsLayer) { 30 IntRect recomputeInterestRect(const GraphicsLayer* graphicsLayer) {
31 return static_cast<CompositedLayerMapping*>(graphicsLayer->client()) 31 return static_cast<CompositedLayerMapping*>(graphicsLayer->client())
32 ->recomputeInterestRect(graphicsLayer); 32 ->recomputeInterestRect(graphicsLayer);
33 } 33 }
34 34
35 IntRect computeInterestRect( 35 IntRect computeInterestRect(
36 const CompositedLayerMapping* compositedLayerMapping, 36 const CompositedLayerMapping* compositedLayerMapping,
37 GraphicsLayer* graphicsLayer, 37 GraphicsLayer* graphicsLayer,
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 WebLayerStickyPositionConstraint constraint = 1682 WebLayerStickyPositionConstraint constraint =
1683 sticky->mainGraphicsLayer() 1683 sticky->mainGraphicsLayer()
1684 ->contentLayer() 1684 ->contentLayer()
1685 ->layer() 1685 ->layer()
1686 ->stickyPositionConstraint(); 1686 ->stickyPositionConstraint();
1687 EXPECT_EQ(IntPoint(0, 50), 1687 EXPECT_EQ(IntPoint(0, 50),
1688 IntPoint(constraint.parentRelativeStickyBoxOffset)); 1688 IntPoint(constraint.parentRelativeStickyBoxOffset));
1689 } 1689 }
1690 1690
1691 } // namespace blink 1691 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698