Changeset 106319 in webkit
- Timestamp:
- Jan 30, 2012 6:58:27 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106318 r106319 1 2012-01-30 Anders Carlsson <andersca@apple.com> 2 3 Simplify RenderLayerCompositor::frameViewDidScroll 4 https://bugs.webkit.org/show_bug.cgi?id=77398 5 6 Reviewed by Sam Weinig. 7 8 Remove the scrollPosition parameter from RenderLayerCompositor::frameViewDidScroll; we can just get it 9 from the associated FrameView object. 10 11 * page/FrameView.cpp: 12 (WebCore::FrameView::scrollPositionChanged): 13 * rendering/RenderLayerCompositor.cpp: 14 (WebCore::RenderLayerCompositor::frameViewDidChangeSize): 15 Call frameViewDidScroll() here instead of setting the scroll layer position explicitly. 16 17 (WebCore::RenderLayerCompositor::frameViewDidScroll): 18 (WebCore::RenderLayerCompositor::ensureRootLayer): 19 * rendering/RenderLayerCompositor.h: 20 (RenderLayerCompositor): 21 1 22 2012-01-30 Pablo Flouret <pablof@motorola.com> 2 23 -
trunk/Source/WebCore/page/FrameView.cpp
r106232 r106319 1730 1730 if (RenderView* root = rootRenderer(this)) { 1731 1731 if (root->usesCompositing()) 1732 root->compositor()->frameViewDidScroll( scrollPosition());1732 root->compositor()->frameViewDidScroll(); 1733 1733 } 1734 1734 #endif -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r106138 r106319 965 965 m_clipLayer->setSize(frameView->visibleContentRect(false /* exclude scrollbars */).size()); 966 966 967 LayoutPoint scrollPosition = frameView->scrollPosition(); 968 m_scrollLayer->setPosition(FloatPoint(-scrollPosition.x(), -scrollPosition.y())); 967 frameViewDidScroll(); 969 968 updateOverflowControlsLayers(); 970 969 … … 981 980 } 982 981 983 void RenderLayerCompositor::frameViewDidScroll(const LayoutPoint& scrollPosition) 984 { 982 void RenderLayerCompositor::frameViewDidScroll() 983 { 984 FrameView* frameView = m_renderView->frameView(); 985 LayoutPoint scrollPosition = frameView->scrollPosition(); 986 985 987 if (m_scrollLayer) 986 988 m_scrollLayer->setPosition(FloatPoint(-scrollPosition.x(), -scrollPosition.y())); … … 1868 1870 1869 1871 frameViewDidChangeSize(); 1870 frameViewDidScroll( m_renderView->frameView()->scrollPosition());1872 frameViewDidScroll(); 1871 1873 1872 1874 #if ENABLE(THREADED_SCROLLING) -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r105757 r106319 188 188 void frameViewDidChangeLocation(const LayoutPoint& contentsOffset); 189 189 void frameViewDidChangeSize(); 190 void frameViewDidScroll( const LayoutPoint& = LayoutPoint());190 void frameViewDidScroll(); 191 191 192 192 String layerTreeAsText(bool showDebugInfo = false);
Note: See TracChangeset
for help on using the changeset viewer.