Changeset 173523 in webkit
- Timestamp:
- Sep 11, 2014, 11:48:21 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/mac-wk2/tiled-drawing/scrolling/fast-scroll-iframe-latched-iframe-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac-wk2/tiled-drawing/scrolling/fast-scroll-iframe-latched-iframe-with-handler-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/FrameView.cpp (modified) (3 diffs)
-
Source/WebCore/page/Settings.in (modified) (1 diff)
-
Source/WebCore/rendering/RenderLayer.cpp (modified) (3 diffs)
-
Source/WebKit/mac/ChangeLog (modified) (1 diff)
-
Source/WebKit/mac/WebView/WebView.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r173520 r173523 1 2014-09-11 Beth Dakin <bdakin@apple.com> 2 3 Support rubber-banding in sub-frames 4 https://bugs.webkit.org/show_bug.cgi?id=136726 5 -and corresponding- 6 rdar://problem/10011924 7 8 Reviewed by Tim Horton. 9 10 * platform/mac-wk2/tiled-drawing/scrolling/fast-scroll-iframe-latched-iframe-expected.txt: 11 * platform/mac-wk2/tiled-drawing/scrolling/fast-scroll-iframe-latched-iframe-with-handler-expected.txt: 12 1 13 2014-09-11 Jer Noble <jer.noble@apple.com> 2 14 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling/fast-scroll-iframe-latched-iframe-expected.txt
r169700 r173523 12 12 Mouse moved to (28, 566) 13 13 Page before: 0, IFrame before: 416 14 Page after: 0, IFrame after: 4 9614 Page after: 0, IFrame after: 486 15 15 PASS Page did not receive wheel events. 16 16 (GraphicsLayer -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling/fast-scroll-iframe-latched-iframe-with-handler-expected.txt
r172832 r173523 12 12 Mouse moved to (28, 566) 13 13 Page before: 0, IFrame before: 416 14 Page after: 0, IFrame after: 4 9614 Page after: 0, IFrame after: 486 15 15 PASS Page did not receive wheel events. 16 Document was initial target for 2of the wheel events.16 Document was initial target for 0 of the wheel events. 17 17 (GraphicsLayer 18 18 (anchor 0.00 0.00) -
trunk/Source/WebCore/ChangeLog
r173521 r173523 1 2014-09-11 Beth Dakin <bdakin@apple.com> 2 3 Support rubber-banding in sub-frames 4 https://bugs.webkit.org/show_bug.cgi?id=136726 5 -and corresponding- 6 rdar://problem/10011924 7 8 Reviewed by Tim Horton. 9 10 Set the appropriate scroll elasticity for all frames! As long as its enabled, sub- 11 frames want an elasticity of ScrollElasticityAutomatic, which will allow for 12 latching. 13 * page/FrameView.cpp: 14 (WebCore::FrameView::FrameView): 15 16 Account for rubber-banding in sub-frames. 17 (WebCore::FrameView::isScrollableOrRubberbandable): 18 (WebCore::FrameView::hasScrollableOrRubberbandableAncestor): 19 20 This patch also re-names rubberBandingForOverflowScrollEnabled to 21 rubberBandingForSubScrollableRegionsEnabled 22 * page/Settings.in: 23 * rendering/RenderLayer.cpp: 24 (WebCore::RenderLayer::overhangAmount): 25 (WebCore::RenderLayer::setHasHorizontalScrollbar): 26 (WebCore::RenderLayer::setHasVerticalScrollbar): 27 1 28 2014-09-11 Myles C. Maxfield <mmaxfield@apple.com> <litherum@gmail.com> 2 29 -
trunk/Source/WebCore/page/FrameView.cpp
r173344 r173523 201 201 init(); 202 202 203 if (frame.isMainFrame()) { 204 ScrollableArea::setVerticalScrollElasticity(m_frame->page() ? m_frame->page()->verticalScrollElasticity() : ScrollElasticityAllowed); 205 ScrollableArea::setHorizontalScrollElasticity(m_frame->page() ? m_frame->page()->horizontalScrollElasticity() : ScrollElasticityAllowed); 206 } 203 #if ENABLE(RUBBER_BANDING) 204 ScrollElasticity verticalElasticity = ScrollElasticityNone; 205 ScrollElasticity horizontalElasticity = ScrollElasticityNone; 206 if (m_frame->isMainFrame()) { 207 verticalElasticity = m_frame->page() ? m_frame->page()->verticalScrollElasticity() : ScrollElasticityAllowed; 208 horizontalElasticity = m_frame->page() ? m_frame->page()->horizontalScrollElasticity() : ScrollElasticityAllowed; 209 } else if (m_frame->settings().rubberBandingForSubScrollableRegionsEnabled()) { 210 verticalElasticity = ScrollElasticityAutomatic; 211 horizontalElasticity = ScrollElasticityAutomatic; 212 } 213 214 ScrollableArea::setVerticalScrollElasticity(verticalElasticity); 215 ScrollableArea::setHorizontalScrollElasticity(horizontalElasticity); 216 #endif 207 217 } 208 218 … … 3349 3359 bool FrameView::isScrollableOrRubberbandable() 3350 3360 { 3351 return frame().isMainFrame() ? isScrollable(Scrollability::ScrollableOrRubberbandable) : isScrollable(Scrollability::Scrollable);3361 return isScrollable(Scrollability::ScrollableOrRubberbandable); 3352 3362 } 3353 3363 … … 3355 3365 { 3356 3366 if (frame().isMainFrame()) 3357 return isScrollable(Scrollability::ScrollableOrRubberbandable); 3358 3359 FrameView* parentFrameView = this->parentFrameView(); 3360 if (!parentFrameView) 3361 return false; 3362 3363 RenderView* parentRenderView = parentFrameView->renderView(); 3364 if (!parentRenderView) 3365 return false; 3366 3367 RenderLayer* enclosingLayer = parentRenderView->enclosingLayer(); 3368 return enclosingLayer && enclosingLayer->hasScrollableOrRubberbandableAncestor(); 3367 return isScrollableOrRubberbandable(); 3368 3369 for (FrameView* parent = this->parentFrameView(); parent; parent = parent->parentFrameView()) { 3370 Scrollability frameScrollability = parent->frame().isMainFrame() ? Scrollability::ScrollableOrRubberbandable : Scrollability::Scrollable; 3371 if (parent->isScrollable(frameScrollability)) 3372 return true; 3373 } 3374 3375 return false; 3369 3376 } 3370 3377 -
trunk/Source/WebCore/page/Settings.in
r172832 r173523 95 95 acceleratedCompositingForFixedPositionEnabled initial=defaultAcceleratedCompositingForFixedPositionEnabled 96 96 acceleratedCompositingForOverflowScrollEnabled initial=false 97 rubberBandingFor OverflowScrollEnabled initial=true, conditional=RUBBER_BANDING97 rubberBandingForSubScrollableRegionsEnabled initial=true, conditional=RUBBER_BANDING 98 98 99 99 experimentalNotificationsEnabled initial=false -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r173484 r173523 2651 2651 { 2652 2652 #if ENABLE(RUBBER_BANDING) 2653 if (!renderer().frame().settings().rubberBandingFor OverflowScrollEnabled())2653 if (!renderer().frame().settings().rubberBandingForSubScrollableRegionsEnabled()) 2654 2654 return IntSize(); 2655 2655 … … 3006 3006 m_hBar = createScrollbar(HorizontalScrollbar); 3007 3007 #if ENABLE(RUBBER_BANDING) 3008 ScrollElasticity elasticity = scrollsOverflow() && renderer().frame().settings().rubberBandingFor OverflowScrollEnabled() ? ScrollElasticityAutomatic : ScrollElasticityNone;3008 ScrollElasticity elasticity = scrollsOverflow() && renderer().frame().settings().rubberBandingForSubScrollableRegionsEnabled() ? ScrollElasticityAutomatic : ScrollElasticityNone; 3009 3009 ScrollableArea::setHorizontalScrollElasticity(elasticity); 3010 3010 #endif … … 3037 3037 m_vBar = createScrollbar(VerticalScrollbar); 3038 3038 #if ENABLE(RUBBER_BANDING) 3039 ScrollElasticity elasticity = scrollsOverflow() && renderer().frame().settings().rubberBandingFor OverflowScrollEnabled() ? ScrollElasticityAutomatic : ScrollElasticityNone;3039 ScrollElasticity elasticity = scrollsOverflow() && renderer().frame().settings().rubberBandingForSubScrollableRegionsEnabled() ? ScrollElasticityAutomatic : ScrollElasticityNone; 3040 3040 ScrollableArea::setVerticalScrollElasticity(elasticity); 3041 3041 #endif -
trunk/Source/WebKit/mac/ChangeLog
r173443 r173523 1 2014-09-11 Beth Dakin <bdakin@apple.com> 2 3 Support rubber-banding in sub-frames 4 https://bugs.webkit.org/show_bug.cgi?id=136726 5 -and corresponding- 6 rdar://problem/10011924 7 8 Reviewed by Tim Horton. 9 10 rubberBandingForOverflowScrollEnabled is re-named to 11 rubberBandingForSubScrollableRegionsEnabled 12 * WebView/WebView.mm: 13 (-[WebView _preferencesChanged:]): 14 1 15 2014-09-09 Benjamin Poulain <bpoulain@apple.com> 2 16 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r173265 r173523 2285 2285 #if ENABLE(RUBBER_BANDING) 2286 2286 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=136131 2287 settings.setRubberBandingFor OverflowScrollEnabled(false);2287 settings.setRubberBandingForSubScrollableRegionsEnabled(false); 2288 2288 #endif 2289 2289
Note:
See TracChangeset
for help on using the changeset viewer.