haikuwebkit/LayoutTests/fast/scrolling/unconstrained-scrollto-expe...

6 lines
80 B
Plaintext
Raw Permalink Normal View History

Make it possible to test rubber-banding in overflow scroll https://bugs.webkit.org/show_bug.cgi?id=179078 Reviewed by Sam Weinig. Source/WebCore: Test: fast/scrolling/unconstrained-scrollto.html Add internals.unconstrainedScrollTo(element, x, y) and plumb through ScrollClamping (which replaces RenderLayer::ScrollOffsetClamping) to support it. Flip the default from unclamped to clamped for various RenderLayer scrolling-related functions, since most callers want clamped. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::scrollTo const): * dom/Element.cpp: (WebCore::Element::scrollTo): * dom/Element.h: * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::scrollTo): * html/HTMLBodyElement.h: * html/TextFieldInputType.cpp: (WebCore::TextFieldInputType::elementDidBlur): * page/DOMWindow.cpp: (WebCore::DOMWindow::scrollTo const): * page/DOMWindow.h: * page/Frame.cpp: (WebCore::Frame::scrollOverflowLayer): (WebCore::Frame::checkOverflowScroll): * platform/ScrollAnimator.cpp: (WebCore::ScrollAnimator::scrollToOffsetWithoutAnimation): * platform/ScrollAnimator.h: * platform/ScrollTypes.h: * platform/ScrollableArea.cpp: (WebCore::ScrollableArea::scrollToOffsetWithoutAnimation): * platform/ScrollableArea.h: * platform/cocoa/ScrollController.h: * platform/mac/ScrollAnimatorMac.h: * platform/mac/ScrollAnimatorMac.mm: (WebCore::ScrollAnimatorMac::scrollToOffsetWithoutAnimation): (WebCore::ScrollAnimatorMac::immediateScrollToPosition): * platform/mock/ScrollAnimatorMock.h: * rendering/RenderBox.cpp: (WebCore::RenderBox::setScrollLeft): (WebCore::RenderBox::setScrollTop): * rendering/RenderBox.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::panScrollFromPoint): (WebCore::RenderLayer::scrollByRecursively): (WebCore::RenderLayer::applyPostLayoutScrollPositionIfNeeded): (WebCore::RenderLayer::scrollToXPosition): (WebCore::RenderLayer::scrollToYPosition): (WebCore::RenderLayer::scrollToOffset): * rendering/RenderLayer.h: * rendering/RenderListBox.cpp: (WebCore::RenderListBox::setScrollLeft): (WebCore::RenderListBox::setScrollTop): * rendering/RenderListBox.h: * rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::setScrollLeft): (WebCore::RenderTextControlSingleLine::setScrollTop): * rendering/RenderTextControlSingleLine.h: * testing/Internals.cpp: (WebCore::Internals::unconstrainedScrollTo): * testing/Internals.h: * testing/Internals.idl: Source/WebKitLegacy/mac: Add internals.unconstrainedScrollTo(element, x, y) and plumb through ScrollClamping (which replaces RenderLayer::ScrollOffsetClamping) to support it. Flip the default from unclamped to clamped for various RenderLayer scrolling-related functions, since most callers want clamped. * DOM/DOMHTML.mm: (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]): LayoutTests: Test that internals.unconstrainedScrollTo() works. * fast/scrolling/unconstrained-scrollto-expected.txt: Added. * fast/scrolling/unconstrained-scrollto.html: Added. Canonical link: https://commits.webkit.org/195211@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-31 23:26:52 +00:00
PASS scroller.scrollTop is -150
PASS successfullyParsed is true
TEST COMPLETE