diff options
Diffstat (limited to 'Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp')
-rw-r--r-- | Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp b/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp index b0e9ee8d6..ca3e21c3d 100644 --- a/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp +++ b/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp @@ -2176,8 +2176,14 @@ public: virtual void beginTest() OVERRIDE { m_layerTreeHost->setViewportSize(IntSize(10, 10)); + m_layerTreeHost->rootLayer()->setBounds(IntSize(10, 10)); + m_rootScrollLayer = ContentLayerChromium::create(&m_mockDelegate); m_rootScrollLayer->setBounds(IntSize(10, 10)); + + m_rootScrollLayer->setPosition(FloatPoint(0, 0)); + m_rootScrollLayer->setAnchorPoint(FloatPoint(0, 0)); + m_rootScrollLayer->setIsDrawable(true); m_rootScrollLayer->setScrollable(true); m_rootScrollLayer->setMaxScrollPosition(IntSize(100, 100)); @@ -2188,6 +2194,10 @@ public: m_childLayer->setIsDrawable(true); m_childLayer->setScrollable(true); m_childLayer->setMaxScrollPosition(IntSize(100, 100)); + + m_childLayer->setPosition(FloatPoint(0, 0)); + m_childLayer->setAnchorPoint(FloatPoint(0, 0)); + m_rootScrollLayer->addChild(m_childLayer); postSetNeedsCommitToMainThread(); } |