Changeset 165493 in webkit
- Timestamp:
- Mar 12, 2014 11:55:53 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r165484 r165493 1 2014-03-12 Simon Fraser <simon.fraser@apple.com> 2 3 Have the scrolling tree track the viewport size, not the viewport rect 4 https://bugs.webkit.org/show_bug.cgi?id=130141 5 6 Reviewed by Beth Dakin. 7 8 The scrolling tree only needs to know the size of the viewport, not its 9 origin, since the origin is deduced from the updated scroll position. 10 11 Tests dump a size, not a rect with a 0,0 origin now. 12 13 * platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls-expected.txt: 14 * platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed-expected.txt: 15 * platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed-expected.txt: 16 * platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow-expected.txt: 17 * platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-expected.txt: 18 * platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex-expected.txt: 19 * platform/mac-wk2/tiled-drawing/fixed/four-bars-expected.txt: 20 * platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer-expected.txt: 21 * platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-expected.txt: 22 * platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view-expected.txt: 23 * platform/mac-wk2/tiled-drawing/fixed/nested-fixed-expected.txt: 24 * platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed-expected.txt: 25 * platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll-expected.txt: 26 * platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling-expected.txt: 27 * platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset-expected.txt: 28 * platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal-expected.txt: 29 1 30 2014-03-12 Simon Fraser <simon.fraser@apple.com> 2 31 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls-expected.txt
r142526 r165493 1 1 Attempted scroll to -5000, 0 2 2 (Scrolling node 3 (viewport rect 0 0785 585)3 (viewport rect 785 585) 4 4 (contents size 5008 5021) 5 5 ) … … 7 7 Attempted scroll to 0, -5000 8 8 (Scrolling node 9 (viewport rect 0 0785 585)9 (viewport rect 785 585) 10 10 (contents size 5008 5021) 11 11 ) … … 13 13 Attempted scroll to -5000, -5000 14 14 (Scrolling node 15 (viewport rect 0 0785 585)15 (viewport rect 785 585) 16 16 (contents size 5008 5021) 17 17 ) … … 19 19 Attempted scroll to 10000, 0 20 20 (Scrolling node 21 (viewport rect 0 0785 585)21 (viewport rect 785 585) 22 22 (contents size 5008 5021) 23 23 (requested scroll position 4223 0) … … 26 26 Attempted scroll to 0, 10000 27 27 (Scrolling node 28 (viewport rect 0 0785 585)28 (viewport rect 785 585) 29 29 (contents size 5008 5021) 30 30 (requested scroll position 0 4436) … … 33 33 Attempted scroll to 10000, 10000 34 34 (Scrolling node 35 (viewport rect 0 0785 585)35 (viewport rect 785 585) 36 36 (contents size 5008 5021) 37 37 (requested scroll position 4223 4436) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2710) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2513) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2213) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 1021) 4 4 (children 1 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 1021) 4 4 (children 1 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-expected.txt
r148104 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2221) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer-expected.txt
r148104 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2421) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-expected.txt
r142526 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2221) 4 4 (children 1 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view-expected.txt
r148104 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2221) 4 4 (children 1 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/nested-fixed-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2213) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2513) 4 4 (requested scroll position 0 200) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 5021) 4 4 (requested scroll position 0 3000) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling-expected.txt
r141362 r165493 1 1 (Scrolling node 2 (viewport rect 0 0800 600)2 (viewport rect 800 600) 3 3 (contents size 800 600) 4 4 (Scrolling on main thread because: Has slow repaint objects) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset-expected.txt
r142526 r165493 1 1 (Scrolling node 2 (viewport rect 0 0785 600)2 (viewport rect 785 600) 3 3 (contents size 785 2216) 4 4 (children 1 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal-expected.txt
r141362 r165493 1 1 Left sticky Right sticky Left % sticky Right % sticky Left and Right Left and Right % 2 2 (Scrolling node 3 (viewport rect 0 0800 585)3 (viewport rect 800 585) 4 4 (contents size 2008 585) 5 5 (requested scroll position 800 0) -
trunk/Source/WebCore/ChangeLog
r165491 r165493 1 2014-03-12 Simon Fraser <simon.fraser@apple.com> 2 3 Have the scrolling tree track the viewport size, not the viewport rect 4 https://bugs.webkit.org/show_bug.cgi?id=130141 5 6 Reviewed by Beth Dakin. 7 8 The scrolling tree only needs to know the size of the viewport, not its 9 origin, since the origin is deduced from the updated scroll position. 10 11 * WebCore.exp.in: 12 * page/scrolling/AsyncScrollingCoordinator.cpp: 13 (WebCore::AsyncScrollingCoordinator::frameViewLayoutUpdated): 14 * page/scrolling/ScrollingStateScrollingNode.cpp: 15 (WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode): 16 (WebCore::ScrollingStateScrollingNode::setViewportSize): 17 (WebCore::ScrollingStateScrollingNode::dumpProperties): 18 * page/scrolling/ScrollingStateScrollingNode.h: 19 * page/scrolling/ScrollingTreeScrollingNode.cpp: 20 (WebCore::ScrollingTreeScrollingNode::updateBeforeChildren): 21 * page/scrolling/ScrollingTreeScrollingNode.h: 22 (WebCore::ScrollingTreeScrollingNode::viewportSize): 23 * page/scrolling/ios/ScrollingTreeScrollingNodeIOS.mm: 24 (WebCore::ScrollingTreeScrollingNodeIOS::setScrollLayerPosition): 25 (WebCore::ScrollingTreeScrollingNodeIOS::maximumScrollPosition): 26 * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm: 27 (WebCore::ScrollingTreeScrollingNodeMac::updateAfterChildren): 28 (WebCore::ScrollingTreeScrollingNodeMac::setScrollLayerPosition): 29 (WebCore::ScrollingTreeScrollingNodeMac::maximumScrollPosition): 30 (WebCore::ScrollingTreeScrollingNodeMac::logExposedUnfilledArea): 31 1 32 2014-03-12 Simon Fraser <simon.fraser@apple.com> 2 33 -
trunk/Source/WebCore/WebCore.exp.in
r165484 r165493 2756 2756 __ZN7WebCore27ScrollingStateScrollingNode15setHeaderHeightEi 2757 2757 __ZN7WebCore27ScrollingStateScrollingNode15setScrollOriginERKNS_8IntPointE 2758 __ZN7WebCore27ScrollingStateScrollingNode15setViewportSizeERKNS_9FloatSizeE 2758 2759 __ZN7WebCore27ScrollingStateScrollingNode17setScrollPositionERKNS_10FloatPointE 2759 2760 __ZN7WebCore27ScrollingStateScrollingNode19setFrameScaleFactorEf … … 2766 2767 __ZN7WebCore27ScrollingStateScrollingNode27setScrollableAreaParametersERKNS_24ScrollableAreaParametersE 2767 2768 __ZN7WebCore27ScrollingStateScrollingNode30setSynchronousScrollingReasonsEj 2768 __ZN7WebCore27ScrollingStateScrollingNode32setViewportConstrainedObjectRectERKNS_9FloatRectE2769 2769 __ZN7WebCore27ScrollingStateScrollingNode33setScrollBehaviorForFixedElementsENS_30ScrollBehaviorForFixedElementsE 2770 2770 __ZNK7WebCore25AsyncScrollingCoordinator24scrollingStateTreeAsTextEv -
trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp
r165484 r165493 91 91 node->setScrollOrigin(frameView->scrollOrigin()); 92 92 #if PLATFORM(IOS) 93 node->setViewport ConstrainedObjectRect(FloatRect(FloatPoint(), frameView->viewportConstrainedVisibleContentRect().size()));93 node->setViewportSize(frameView->viewportConstrainedVisibleContentRect().size()); 94 94 #else 95 node->setViewport ConstrainedObjectRect(FloatRect(FloatPoint(), frameView->visibleContentRect().size()));95 node->setViewportSize(frameView->visibleContentRect().size()); 96 96 #endif 97 97 node->setTotalContentsSize(frameView->totalContentsSize()); -
trunk/Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp
r164358 r165493 62 62 , m_horizontalScrollbarPainter(stateNode.horizontalScrollbarPainter()) 63 63 #endif 64 , m_viewport ConstrainedObjectRect(stateNode.viewportConstrainedObjectRect())64 , m_viewportSize(stateNode.viewportSize()) 65 65 , m_totalContentsSize(stateNode.totalContentsSize()) 66 66 , m_scrollPosition(stateNode.scrollPosition()) … … 99 99 } 100 100 101 void ScrollingStateScrollingNode::setViewport ConstrainedObjectRect(const FloatRect& viewportConstrainedObjectRect)102 { 103 if (m_viewport ConstrainedObjectRect == viewportConstrainedObjectRect)104 return; 105 106 m_viewport ConstrainedObjectRect = viewportConstrainedObjectRect;107 setPropertyChanged(Viewport ConstrainedObjectRect);101 void ScrollingStateScrollingNode::setViewportSize(const FloatSize& size) 102 { 103 if (m_viewportSize == size) 104 return; 105 106 m_viewportSize = size; 107 setPropertyChanged(ViewportSize); 108 108 } 109 109 … … 262 262 ts << "(" << "Scrolling node" << "\n"; 263 263 264 if (!m_viewport ConstrainedObjectRect.isEmpty()) {264 if (!m_viewportSize.isEmpty()) { 265 265 writeIndent(ts, indent + 1); 266 266 ts << "(viewport rect " 267 << TextStream::FormatNumberRespectingIntegers(m_viewportConstrainedObjectRect.x()) << " " 268 << TextStream::FormatNumberRespectingIntegers(m_viewportConstrainedObjectRect.y()) << " " 269 << TextStream::FormatNumberRespectingIntegers(m_viewportConstrainedObjectRect.width()) << " " 270 << TextStream::FormatNumberRespectingIntegers(m_viewportConstrainedObjectRect.height()) << ")\n"; 267 << TextStream::FormatNumberRespectingIntegers(m_viewportSize.width()) << " " 268 << TextStream::FormatNumberRespectingIntegers(m_viewportSize.height()) << ")\n"; 271 269 } 272 270 -
trunk/Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h
r164358 r165493 51 51 52 52 enum ChangedProperty { 53 Viewport ConstrainedObjectRect= NumStateNodeBits,53 ViewportSize = NumStateNodeBits, 54 54 TotalContentsSize, 55 55 ScrollPosition, … … 71 71 }; 72 72 73 const Float Rect& viewportConstrainedObjectRect() const { return m_viewportConstrainedObjectRect; }74 void setViewport ConstrainedObjectRect(const FloatRect&);73 const FloatSize& viewportSize() const { return m_viewportSize; } 74 void setViewportSize(const FloatSize&); 75 75 76 76 const IntSize& totalContentsSize() const { return m_totalContentsSize; } … … 149 149 #endif 150 150 151 Float Rect m_viewportConstrainedObjectRect;151 FloatSize m_viewportSize; 152 152 IntSize m_totalContentsSize; 153 153 FloatPoint m_scrollPosition; -
trunk/Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.cpp
r163231 r165493 52 52 const ScrollingStateScrollingNode& state = toScrollingStateScrollingNode(stateNode); 53 53 54 if (state.hasChangedProperty(ScrollingStateScrollingNode::Viewport ConstrainedObjectRect))55 m_viewport ConstrainedObjectRect = state.viewportConstrainedObjectRect();54 if (state.hasChangedProperty(ScrollingStateScrollingNode::ViewportSize)) 55 m_viewportSize = state.viewportSize(); 56 56 57 57 if (state.hasChangedProperty(ScrollingStateScrollingNode::TotalContentsSize)) { -
trunk/Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.h
r165091 r165493 61 61 62 62 const FloatPoint& scrollPosition() const { return m_scrollPosition; } 63 const Float Rect& viewportConstrainedObjectRect() const { return m_viewportConstrainedObjectRect; }63 const FloatSize& viewportSize() const { return m_viewportSize; } 64 64 const IntSize& totalContentsSize() const { return m_totalContentsSize; } 65 65 const IntPoint& scrollOrigin() const { return m_scrollOrigin; } … … 87 87 88 88 private: 89 Float Rect m_viewportConstrainedObjectRect;89 FloatSize m_viewportSize; 90 90 IntSize m_totalContentsSize; 91 91 IntSize m_totalContentsSizeForRubberBand; -
trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeScrollingNodeIOS.mm
r165484 r165493 137 137 ScrollBehaviorForFixedElements behaviorForFixed = scrollBehaviorForFixedElements(); 138 138 FloatPoint scrollOffset = position - toIntSize(scrollOrigin()); 139 140 FloatSize scrollOffsetForFixedChildren = FrameView::scrollOffsetForFixedPosition(enclosingIntRect(viewportConstrainedObjectRect()), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), frameScaleFactor(), false, behaviorForFixed, headerHeight(), footerHeight()); 139 FloatRect viewportRect(FloatPoint(), viewportSize()); 140 141 // FIXME: scrollOffsetForFixedPosition() needs to do float math. 142 FloatSize scrollOffsetForFixedChildren = FrameView::scrollOffsetForFixedPosition(enclosingLayoutRect(viewportRect), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), frameScaleFactor(), false, behaviorForFixed, headerHeight(), footerHeight()); 141 143 if (m_counterScrollingLayer) 142 144 m_counterScrollingLayer.get().position = FloatPoint(scrollOffsetForFixedChildren); … … 148 150 float horizontalScrollOffsetForBanner = scrollOffsetForFixedChildren.width(); 149 151 if (frameScaleFactor() != 1) 150 horizontalScrollOffsetForBanner = FrameView::scrollOffsetForFixedPosition(enclosing IntRect(viewportConstrainedObjectRect()), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), 1, false, behaviorForFixed, headerHeight(), footerHeight()).width();152 horizontalScrollOffsetForBanner = FrameView::scrollOffsetForFixedPosition(enclosingLayoutRect(viewportRect), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), 1, false, behaviorForFixed, headerHeight(), footerHeight()).width(); 151 153 152 154 if (m_headerLayer) … … 160 162 return; 161 163 162 FloatRect viewportRect = viewportConstrainedObjectRect();163 164 viewportRect.setLocation(FloatPoint() + scrollOffsetForFixedChildren); 164 165 … … 180 181 FloatPoint ScrollingTreeScrollingNodeIOS::maximumScrollPosition() const 181 182 { 182 FloatPoint position(totalContentsSizeForRubberBand().width() - viewport ConstrainedObjectRect().width(),183 totalContentsSizeForRubberBand().height() - viewport ConstrainedObjectRect().height());183 FloatPoint position(totalContentsSizeForRubberBand().width() - viewportSize().width(), 184 totalContentsSizeForRubberBand().height() - viewportSize().height()); 184 185 185 186 position = position.expandedTo(FloatPoint()); -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm
r165484 r165493 128 128 setScrollPosition(scrollingStateNode.requestedScrollPosition()); 129 129 130 if (scrollingStateNode.hasChangedProperty(ScrollingStateNode::ScrollLayer) || scrollingStateNode.hasChangedProperty(ScrollingStateScrollingNode::TotalContentsSize) || scrollingStateNode.hasChangedProperty(ScrollingStateScrollingNode::Viewport ConstrainedObjectRect))130 if (scrollingStateNode.hasChangedProperty(ScrollingStateNode::ScrollLayer) || scrollingStateNode.hasChangedProperty(ScrollingStateScrollingNode::TotalContentsSize) || scrollingStateNode.hasChangedProperty(ScrollingStateScrollingNode::ViewportSize)) 131 131 updateMainFramePinState(scrollPosition()); 132 132 } … … 344 344 ScrollBehaviorForFixedElements behaviorForFixed = scrollBehaviorForFixedElements(); 345 345 FloatPoint scrollOffset = position - toFloatSize(scrollOrigin()); 346 347 FloatSize scrollOffsetForFixedChildren = FrameView::scrollOffsetForFixedPosition(enclosingIntRect(viewportConstrainedObjectRect()), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), frameScaleFactor(), false, behaviorForFixed, headerHeight(), footerHeight()); 346 FloatRect viewportRect(FloatPoint(), viewportSize()); 347 348 // FIXME: scrollOffsetForFixedPosition() needs to do float math. 349 FloatSize scrollOffsetForFixedChildren = FrameView::scrollOffsetForFixedPosition(enclosingLayoutRect(viewportRect), 350 totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), frameScaleFactor(), false, behaviorForFixed, headerHeight(), footerHeight()); 351 348 352 if (m_counterScrollingLayer) 349 353 m_counterScrollingLayer.get().position = FloatPoint(scrollOffsetForFixedChildren); … … 355 359 float horizontalScrollOffsetForBanner = scrollOffsetForFixedChildren.width(); 356 360 if (frameScaleFactor() != 1) 357 horizontalScrollOffsetForBanner = FrameView::scrollOffsetForFixedPosition(enclosing IntRect(viewportConstrainedObjectRect()), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), 1, false, behaviorForFixed, headerHeight(), footerHeight()).width();361 horizontalScrollOffsetForBanner = FrameView::scrollOffsetForFixedPosition(enclosingLayoutRect(viewportRect), totalContentsSize(), flooredIntPoint(scrollOffset), scrollOrigin(), 1, false, behaviorForFixed, headerHeight(), footerHeight()).width(); 358 362 359 363 if (m_headerLayer) … … 363 367 m_footerLayer.get().position = FloatPoint(horizontalScrollOffsetForBanner, totalContentsSize().height() - footerHeight()); 364 368 } 365 366 FloatRect viewportRect = viewportConstrainedObjectRect();367 369 368 370 if (m_verticalScrollbarPainter || m_horizontalScrollbarPainter) { … … 411 413 FloatPoint ScrollingTreeScrollingNodeMac::maximumScrollPosition() const 412 414 { 413 FloatPoint position(totalContentsSizeForRubberBand().width() - viewport ConstrainedObjectRect().width(),414 totalContentsSizeForRubberBand().height() - viewport ConstrainedObjectRect().height());415 FloatPoint position(totalContentsSizeForRubberBand().width() - viewportSize().width(), 416 totalContentsSizeForRubberBand().height() - viewportSize().height()); 415 417 416 418 position = position.expandedTo(FloatPoint()); … … 467 469 468 470 FloatPoint scrollPosition = this->scrollPosition(); 469 unsigned unfilledArea = TileController::blankPixelCountForTiles(tiles, viewportConstrainedObjectRect(), IntPoint(-scrollPosition.x(), -scrollPosition.y())); 471 FloatRect viewPortRect(scrollPosition, viewportSize()); 472 unsigned unfilledArea = TileController::blankPixelCountForTiles(tiles, viewPortRect, IntPoint(-scrollPosition.x(), -scrollPosition.y())); 470 473 471 474 if (unfilledArea || m_lastScrollHadUnfilledPixels) -
trunk/Source/WebKit2/ChangeLog
r165492 r165493 1 2014-03-12 Simon Fraser <simon.fraser@apple.com> 2 3 Have the scrolling tree track the viewport size, not the viewport rect 4 https://bugs.webkit.org/show_bug.cgi?id=130141 5 6 Reviewed by Beth Dakin. 7 8 The scrolling tree only needs to know the size of the viewport, not its 9 origin, since the origin is deduced from the updated scroll position. 10 11 * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp: 12 (ArgumentCoder<ScrollingStateScrollingNode>::encode): 13 (ArgumentCoder<ScrollingStateScrollingNode>::decode): 14 1 15 2014-03-12 Commit Queue <commit-queue@webkit.org> 2 16 -
trunk/Source/WebKit2/Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp
r163677 r165493 109 109 encoder << static_cast<const ScrollingStateNode&>(node); 110 110 111 SCROLLING_NODE_ENCODE(Viewport ConstrainedObjectRect, viewportConstrainedObjectRect)111 SCROLLING_NODE_ENCODE(ViewportSize, viewportSize) 112 112 SCROLLING_NODE_ENCODE(TotalContentsSize, totalContentsSize) 113 113 SCROLLING_NODE_ENCODE(ScrollPosition, scrollPosition) … … 146 146 return false; 147 147 148 SCROLLING_NODE_DECODE(Viewport ConstrainedObjectRect, FloatRect, setViewportConstrainedObjectRect);148 SCROLLING_NODE_DECODE(ViewportSize, FloatSize, setViewportSize); 149 149 SCROLLING_NODE_DECODE(TotalContentsSize, IntSize, setTotalContentsSize); 150 150 SCROLLING_NODE_DECODE(ScrollPosition, FloatPoint, setScrollPosition);
Note: See TracChangeset
for help on using the changeset viewer.