Changeset 259846 in webkit
- Timestamp:
- Apr 9, 2020, 10:22:16 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 16 edited
-
ChangeLog (modified) (1 diff)
-
dom/Element.cpp (modified) (5 diffs)
-
page/DOMWindow.cpp (modified) (1 diff)
-
page/FrameView.cpp (modified) (2 diffs)
-
page/FrameView.h (modified) (1 diff)
-
platform/ScrollTypes.h (modified) (1 diff)
-
platform/ScrollView.cpp (modified) (4 diffs)
-
platform/ScrollView.h (modified) (2 diffs)
-
rendering/RenderBox.cpp (modified) (3 diffs)
-
rendering/RenderBox.h (modified) (1 diff)
-
rendering/RenderLayer.cpp (modified) (7 diffs)
-
rendering/RenderLayer.h (modified) (2 diffs)
-
rendering/RenderListBox.cpp (modified) (2 diffs)
-
rendering/RenderListBox.h (modified) (1 diff)
-
rendering/RenderTextControlSingleLine.cpp (modified) (2 diffs)
-
rendering/RenderTextControlSingleLine.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r259845 r259846 1 2020-04-09 Cathie Chen <cathiechen@igalia.com> 2 3 Fix up code style for scroll animation 4 https://bugs.webkit.org/show_bug.cgi?id=210171 5 6 Reviewed by Simon Fraser. 7 8 1. Use AnimatedScroll instead of bool to indicate animated or not. 9 2. Remove parameter ScrollRectToVisibleOptions, the autoscroll status is available from EventHandler. 10 3. In order to keep consistent, use RenderLayer::setScrollPosition instead of RenderLayer::scrollToPosition. 11 4. Add AnimatedScroll parameter to ScrollView::setContentsScrollPosition, then the scroll animation 12 can be dealt in FrameView::setScrollPosition. 13 5. In ScrollView::setScrollPosition, the scroll animation should be cancled before return. 14 15 * dom/Element.cpp: Use AnimatedScroll instead of bool. 16 (WebCore::Element::scrollTo): 17 (WebCore::Element::setScrollLeft): 18 (WebCore::Element::setScrollTop): 19 * page/DOMWindow.cpp: 20 (WebCore::DOMWindow::scrollTo const): No need to call scrollToOffsetWithAnimation here. 21 * page/FrameView.cpp: 22 (WebCore::FrameView::setScrollPosition): 23 * page/FrameView.h: 24 * platform/ScrollTypes.h: Add AnimatedScroll. 25 * platform/ScrollView.cpp: 26 (WebCore::ScrollView::setContentsScrollPosition): Add parameter AnimatedScroll. 27 (WebCore::ScrollView::setScrollPosition): Cancel the scroll animation before return. 28 * platform/ScrollView.h: 29 * rendering/RenderBox.cpp: 30 (WebCore::RenderBox::setScrollLeft): 31 (WebCore::RenderBox::setScrollTop): 32 (WebCore::RenderBox::setScrollPosition): 33 * rendering/RenderBox.h: 34 * rendering/RenderLayer.cpp: 35 (WebCore::RenderLayer::scrollToXPosition): 36 (WebCore::RenderLayer::scrollToYPosition): 37 (WebCore::RenderLayer::setScrollPosition): 38 (WebCore::RenderLayer::scrollRectToVisible): Remove AutoscrollStatus. 39 (WebCore::RenderLayer::autoscroll): 40 (WebCore::RenderLayer::scrollToPosition): Deleted. Use setScrollPosition instead. 41 * rendering/RenderLayer.h: 42 * rendering/RenderListBox.cpp: 43 (WebCore::RenderListBox::setScrollLeft): 44 (WebCore::RenderListBox::setScrollTop): 45 * rendering/RenderListBox.h: 46 * rendering/RenderTextControlSingleLine.cpp: 47 (WebCore::RenderTextControlSingleLine::setScrollLeft): 48 (WebCore::RenderTextControlSingleLine::setScrollTop): 49 * rendering/RenderTextControlSingleLine.h: 50 1 51 2020-04-09 Alex Christensen <achristensen@webkit.org> 2 52 -
trunk/Source/WebCore/dom/Element.cpp
r259687 r259846 951 951 clampToInteger(scrollToOptions.top.value() * renderer->style().effectiveZoom()) 952 952 ); 953 bool animated = useSmoothScrolling(scrollToOptions.behavior.valueOr(ScrollBehavior::Auto), this);953 AnimatedScroll animated = useSmoothScrolling(scrollToOptions.behavior.valueOr(ScrollBehavior::Auto), this) ? AnimatedScroll::Yes : AnimatedScroll::No; 954 954 renderer->setScrollPosition(scrollPosition, ScrollType::Programmatic, clamping, animated); 955 955 } … … 1294 1294 // FIXME: Should we use document()->scrollingElement()? 1295 1295 // See https://bugs.webkit.org/show_bug.cgi?id=205059 1296 bool animated = useSmoothScrolling(ScrollBehavior::Auto, document().documentElement());1296 AnimatedScroll animated = useSmoothScrolling(ScrollBehavior::Auto, document().documentElement()) ? AnimatedScroll::Yes : AnimatedScroll::No; 1297 1297 IntPoint position(static_cast<int>(newLeft * frame->pageZoomFactor() * frame->frameScaleFactor()), frame->view()->scrollY()); 1298 1298 frame->view()->setScrollPosition(position, ScrollClamping::Clamped, animated); … … 1303 1303 if (auto* renderer = renderBox()) { 1304 1304 int clampedLeft = clampToInteger(newLeft * renderer->style().effectiveZoom()); 1305 bool animated = useSmoothScrolling(ScrollBehavior::Auto, this);1305 AnimatedScroll animated = useSmoothScrolling(ScrollBehavior::Auto, this) ? AnimatedScroll::Yes : AnimatedScroll::No; 1306 1306 renderer->setScrollLeft(clampedLeft, ScrollType::Programmatic, ScrollClamping::Clamped, animated); 1307 1307 if (auto* scrollableArea = renderer->layer()) … … 1318 1318 // FIXME: Should we use document()->scrollingElement()? 1319 1319 // See https://bugs.webkit.org/show_bug.cgi?id=205059 1320 bool animated = useSmoothScrolling(ScrollBehavior::Auto, document().documentElement());1320 AnimatedScroll animated = useSmoothScrolling(ScrollBehavior::Auto, document().documentElement()) ? AnimatedScroll::Yes : AnimatedScroll::No; 1321 1321 IntPoint position(frame->view()->scrollX(), static_cast<int>(newTop * frame->pageZoomFactor() * frame->frameScaleFactor())); 1322 1322 frame->view()->setScrollPosition(position, ScrollClamping::Clamped, animated); … … 1327 1327 if (auto* renderer = renderBox()) { 1328 1328 int clampedTop = clampToInteger(newTop * renderer->style().effectiveZoom()); 1329 bool animated = useSmoothScrolling(ScrollBehavior::Auto, this);1329 AnimatedScroll animated = useSmoothScrolling(ScrollBehavior::Auto, this) ? AnimatedScroll::Yes : AnimatedScroll::No; 1330 1330 renderer->setScrollTop(clampedTop, ScrollType::Programmatic, ScrollClamping::Clamped, animated); 1331 1331 if (auto* scrollableArea = renderer->layer()) -
trunk/Source/WebCore/page/DOMWindow.cpp
r258850 r259846 1689 1689 // FIXME: Should we use document()->scrollingElement()? 1690 1690 // See https://bugs.webkit.org/show_bug.cgi?id=205059 1691 if (useSmoothScrolling(scrollToOptions.behavior.valueOr(ScrollBehavior::Auto), document()->documentElement())) { 1692 view->scrollToOffsetWithAnimation(layoutPos, ScrollType::Programmatic, clamping); 1693 return; 1694 } 1695 1696 view->setContentsScrollPosition(layoutPos, clamping); 1691 AnimatedScroll animated = useSmoothScrolling(scrollToOptions.behavior.valueOr(ScrollBehavior::Auto), document()->documentElement()) ? AnimatedScroll::Yes : AnimatedScroll::No; 1692 1693 view->setContentsScrollPosition(layoutPos, clamping, animated); 1697 1694 } 1698 1695 -
trunk/Source/WebCore/page/FrameView.cpp
r259761 r259846 2283 2283 } 2284 2284 2285 void FrameView::setScrollPosition(const ScrollPosition& scrollPosition, ScrollClamping clamping, bool animated)2285 void FrameView::setScrollPosition(const ScrollPosition& scrollPosition, ScrollClamping clamping, AnimatedScroll animated) 2286 2286 { 2287 2287 LOG_WITH_STREAM(Scrolling, stream << "FrameView::setScrollPosition " << scrollPosition << " , clearing anchor"); … … 2296 2296 if (page && page->isMonitoringWheelEvents()) 2297 2297 scrollAnimator().setWheelEventTestMonitor(page->wheelEventTestMonitor()); 2298 if (animated )2298 if (animated == AnimatedScroll::Yes) 2299 2299 scrollToOffsetWithAnimation(scrollOffsetFromPosition(scrollPosition), currentScrollType(), clamping); 2300 2300 else -
trunk/Source/WebCore/page/FrameView.h
r259761 r259846 231 231 WEBCORE_EXPORT void setFixedVisibleContentRect(const IntRect&) final; 232 232 #endif 233 WEBCORE_EXPORT void setScrollPosition(const ScrollPosition&, ScrollClamping = ScrollClamping::Clamped, bool animated = false) final;233 WEBCORE_EXPORT void setScrollPosition(const ScrollPosition&, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No) final; 234 234 void restoreScrollbar(); 235 235 void scheduleScrollToFocusedElement(SelectionRevealMode); -
trunk/Source/WebCore/platform/ScrollTypes.h
r255957 r259846 61 61 }; 62 62 63 enum class AnimatedScroll : uint8_t { 64 No, 65 Yes 66 }; 67 63 68 inline ScrollDirection logicalToPhysical(ScrollLogicalDirection direction, bool isVertical, bool isFlipped) 64 69 { -
trunk/Source/WebCore/platform/ScrollView.cpp
r259761 r259846 208 208 } 209 209 210 void ScrollView::setContentsScrollPosition(const IntPoint& position, ScrollClamping clamping )210 void ScrollView::setContentsScrollPosition(const IntPoint& position, ScrollClamping clamping, AnimatedScroll animated) 211 211 { 212 212 #if PLATFORM(IOS_FAMILY) … … 214 214 setActualScrollPosition(position); 215 215 #endif 216 setScrollPosition(position, clamping );216 setScrollPosition(position, clamping, animated); 217 217 } 218 218 … … 515 515 } 516 516 517 void ScrollView::setScrollPosition(const ScrollPosition& scrollPosition, ScrollClamping clamping, bool/* animated*/)517 void ScrollView::setScrollPosition(const ScrollPosition& scrollPosition, ScrollClamping clamping, AnimatedScroll/* animated*/) 518 518 { 519 519 LOG_WITH_STREAM(Scrolling, stream << "ScrollView::setScrollPosition " << scrollPosition); … … 527 527 } 528 528 529 ScrollPosition newScrollPosition = (!delegatesScrolling() && clamping == ScrollClamping::Clamped) ? adjustScrollPositionWithinRange(scrollPosition) : scrollPosition;530 531 if ((!delegatesScrolling() || currentScrollType() == ScrollType::User) && currentScrollBehaviorStatus() == ScrollBehaviorStatus::NotInAnimation && newScrollPosition == this->scrollPosition())532 return;533 534 529 if (currentScrollBehaviorStatus() == ScrollBehaviorStatus::InNonNativeAnimation) 535 530 scrollAnimator().cancelAnimations(); 531 532 ScrollPosition newScrollPosition = (!delegatesScrolling() && clamping == ScrollClamping::Clamped) ? adjustScrollPositionWithinRange(scrollPosition) : scrollPosition; 533 if ((!delegatesScrolling() || currentScrollType() == ScrollType::User) && currentScrollBehaviorStatus() == ScrollBehaviorStatus::NotInAnimation && newScrollPosition == this->scrollPosition()) 534 return; 536 535 537 536 if (!requestScrollPositionUpdate(newScrollPosition, currentScrollType(), clamping)) -
trunk/Source/WebCore/platform/ScrollView.h
r259761 r259846 233 233 // Scroll position used by web-exposed features (has legacy iOS behavior). 234 234 WEBCORE_EXPORT IntPoint contentsScrollPosition() const; 235 void setContentsScrollPosition(const IntPoint&, ScrollClamping = ScrollClamping::Clamped );235 void setContentsScrollPosition(const IntPoint&, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 236 236 237 237 #if PLATFORM(IOS_FAMILY) … … 263 263 264 264 // Functions for scrolling the view. 265 virtual void setScrollPosition(const ScrollPosition&, ScrollClamping = ScrollClamping::Clamped, bool animated = false);265 virtual void setScrollPosition(const ScrollPosition&, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 266 266 267 267 void scrollBy(const IntSize& s) { return setScrollPosition(scrollPosition() + s); } -
trunk/Source/WebCore/rendering/RenderBox.cpp
r259575 r259846 582 582 } 583 583 584 void RenderBox::setScrollLeft(int newLeft, ScrollType scrollType, ScrollClamping clamping, bool animated)584 void RenderBox::setScrollLeft(int newLeft, ScrollType scrollType, ScrollClamping clamping, AnimatedScroll animated) 585 585 { 586 586 if (!hasOverflowClip() || !layer()) … … 590 590 } 591 591 592 void RenderBox::setScrollTop(int newTop, ScrollType scrollType, ScrollClamping clamping, bool animated)592 void RenderBox::setScrollTop(int newTop, ScrollType scrollType, ScrollClamping clamping, AnimatedScroll animated) 593 593 { 594 594 if (!hasOverflowClip() || !layer()) … … 598 598 } 599 599 600 void RenderBox::setScrollPosition(const ScrollPosition& position, ScrollType scrollType, ScrollClamping clamping, bool animated)600 void RenderBox::setScrollPosition(const ScrollPosition& position, ScrollType scrollType, ScrollClamping clamping, AnimatedScroll animated) 601 601 { 602 602 if (!hasOverflowClip() || !layer()) 603 603 return; 604 604 setupWheelEventMonitor(*layer()); 605 layer()->s crollToPosition(position, scrollType, clamping, animated);605 layer()->setScrollPosition(position, scrollType, clamping, animated); 606 606 } 607 607 -
trunk/Source/WebCore/rendering/RenderBox.h
r259210 r259846 248 248 virtual int scrollWidth() const; 249 249 virtual int scrollHeight() const; 250 virtual void setScrollLeft(int, ScrollType, ScrollClamping = ScrollClamping::Clamped, bool animated = false);251 virtual void setScrollTop(int, ScrollType, ScrollClamping = ScrollClamping::Clamped, bool animated = false);252 void setScrollPosition(const ScrollPosition&, ScrollType, ScrollClamping = ScrollClamping::Clamped, bool animated = false);250 virtual void setScrollLeft(int, ScrollType, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 251 virtual void setScrollTop(int, ScrollType, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 252 void setScrollPosition(const ScrollPosition&, ScrollType, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 253 253 254 254 LayoutUnit marginTop() const override { return m_marginBox.top(); } -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r259762 r259846 2591 2591 } 2592 2592 2593 void RenderLayer::scrollToXPosition(int x, ScrollType scrollType, ScrollClamping clamping, bool animated)2593 void RenderLayer::scrollToXPosition(int x, ScrollType scrollType, ScrollClamping clamping, AnimatedScroll animated) 2594 2594 { 2595 2595 ScrollPosition position(x, m_scrollPosition.y()); 2596 s crollToPosition(position, scrollType, clamping, animated);2597 } 2598 2599 void RenderLayer::scrollToYPosition(int y, ScrollType scrollType, ScrollClamping clamping, bool animated)2596 setScrollPosition(position, scrollType, clamping, animated); 2597 } 2598 2599 void RenderLayer::scrollToYPosition(int y, ScrollType scrollType, ScrollClamping clamping, AnimatedScroll animated) 2600 2600 { 2601 2601 ScrollPosition position(m_scrollPosition.x(), y); 2602 s crollToPosition(position, scrollType, clamping, animated);2603 } 2604 2605 void RenderLayer::s crollToPosition(const ScrollPosition& position, ScrollType scrollType, ScrollClamping clamping, bool animated)2606 { 2607 if (animated )2602 setScrollPosition(position, scrollType, clamping, animated); 2603 } 2604 2605 void RenderLayer::setScrollPosition(const ScrollPosition& position, ScrollType scrollType, ScrollClamping clamping, AnimatedScroll animated) 2606 { 2607 if (animated == AnimatedScroll::Yes) 2608 2608 scrollToOffsetWithAnimation(scrollOffsetFromPosition(position), scrollType, clamping); 2609 2609 else … … 2806 2806 } 2807 2807 2808 void RenderLayer::scrollRectToVisible(const LayoutRect& absoluteRect, bool insideFixed, const ScrollRectToVisibleOptions& options , AutoscrollStatus autoscrollStatus)2808 void RenderLayer::scrollRectToVisible(const LayoutRect& absoluteRect, bool insideFixed, const ScrollRectToVisibleOptions& options) 2809 2809 { 2810 2810 LOG_WITH_STREAM(Scrolling, stream << "Layer " << this << " scrollRectToVisible " << absoluteRect); … … 2813 2813 FrameView& frameView = renderer().view().frameView(); 2814 2814 auto* parentLayer = enclosingContainingBlockLayer(*this, CrossFrameBoundaries::No); 2815 bool autoscrollNotInProgress = !renderer().frame().eventHandler().autoscrollInProgress(); 2815 2816 2816 2817 if (allowsCurrentScroll()) { … … 2831 2832 if (clampedScrollOffset != scrollOffset() || currentScrollBehaviorStatus() != ScrollBehaviorStatus::NotInAnimation) { 2832 2833 ScrollOffset oldScrollOffset = scrollOffset(); 2833 bool animated = autoscrollStatus == AutoscrollStatus::NotInProgress && useSmoothScrolling(options.behavior, box->element()); 2834 scrollToPosition(scrollPositionFromOffset(clampedScrollOffset), ScrollType::Programmatic, ScrollClamping::Clamped, animated); 2834 AnimatedScroll animated = AnimatedScroll::No; 2835 if (autoscrollNotInProgress && useSmoothScrolling(options.behavior, box->element())) 2836 animated = AnimatedScroll::Yes; 2837 setScrollPosition(scrollPositionFromOffset(clampedScrollOffset), ScrollType::Programmatic, ScrollClamping::Clamped, animated); 2835 2838 IntSize scrollOffsetDifference = clampedScrollOffset - oldScrollOffset; 2836 2839 localExposeRect.move(-scrollOffsetDifference); … … 2858 2861 // FIXME: Should we use contentDocument()->scrollingElement()? 2859 2862 // See https://bugs.webkit.org/show_bug.cgi?id=205059 2860 bool animated = autoscrollStatus == AutoscrollStatus::NotInProgress && ownerElement->contentDocument() && useSmoothScrolling(options.behavior, ownerElement->contentDocument()->documentElement()); 2863 AnimatedScroll animated = AnimatedScroll::No; 2864 if (autoscrollNotInProgress 2865 && ownerElement->contentDocument() 2866 && useSmoothScrolling(options.behavior, ownerElement->contentDocument()->documentElement())) 2867 animated = AnimatedScroll::Yes; 2861 2868 frameView.setScrollPosition(scrollPosition, ScrollClamping::Clamped, animated); 2862 2869 … … 2901 2908 // FIXME: Should we use document()->scrollingElement()? 2902 2909 // See https://bugs.webkit.org/show_bug.cgi?id=205059 2903 bool animated = autoscrollStatus == AutoscrollStatus::NotInProgress && useSmoothScrolling(options.behavior, renderer().document().documentElement()); 2910 AnimatedScroll animated = AnimatedScroll::No; 2911 if (autoscrollNotInProgress && useSmoothScrolling(options.behavior, renderer().document().documentElement())) 2912 animated = AnimatedScroll::Yes; 2904 2913 frameView.setScrollPosition(clampedScrollPosition, ScrollClamping::Clamped, animated); 2905 2914 } … … 3041 3050 { 3042 3051 IntPoint currentDocumentPosition = renderer().view().frameView().windowToContents(positionInWindow); 3043 scrollRectToVisible(LayoutRect(currentDocumentPosition, LayoutSize(1, 1)), false, { SelectionRevealMode::Reveal, ScrollAlignment::alignToEdgeIfNeeded, ScrollAlignment::alignToEdgeIfNeeded, ShouldAllowCrossOriginScrolling::Yes } , AutoscrollStatus::InProgress);3052 scrollRectToVisible(LayoutRect(currentDocumentPosition, LayoutSize(1, 1)), false, { SelectionRevealMode::Reveal, ScrollAlignment::alignToEdgeIfNeeded, ScrollAlignment::alignToEdgeIfNeeded, ShouldAllowCrossOriginScrolling::Yes }); 3044 3053 } 3045 3054 -
trunk/Source/WebCore/rendering/RenderLayer.h
r259761 r259846 451 451 WEBCORE_EXPORT void scrollToOffsetWithAnimation(const ScrollOffset&, ScrollType = ScrollType::Programmatic, ScrollClamping = ScrollClamping::Clamped); 452 452 453 void scrollToXPosition(int x, ScrollType, ScrollClamping = ScrollClamping::Clamped, bool animated = false);454 void scrollToYPosition(int y, ScrollType, ScrollClamping = ScrollClamping::Clamped, bool animated = false);455 void s crollToPosition(const ScrollPosition&, ScrollType, ScrollClamping = ScrollClamping::Clamped, bool animated = false);453 void scrollToXPosition(int x, ScrollType, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 454 void scrollToYPosition(int y, ScrollType, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 455 void setScrollPosition(const ScrollPosition&, ScrollType, ScrollClamping = ScrollClamping::Clamped, AnimatedScroll = AnimatedScroll::No); 456 456 457 457 // These are only used by marquee. … … 467 467 void availableContentSizeChanged(AvailableSizeChangeReason) final; 468 468 469 enum AutoscrollStatus { NotInProgress, InProgress };470 469 // "absoluteRect" is in scaled document coordinates. 471 void scrollRectToVisible(const LayoutRect& absoluteRect, bool insideFixed, const ScrollRectToVisibleOptions& , AutoscrollStatus = AutoscrollStatus::NotInProgress);470 void scrollRectToVisible(const LayoutRect& absoluteRect, bool insideFixed, const ScrollRectToVisibleOptions&); 472 471 473 472 bool scrollsOverflow() const; -
trunk/Source/WebCore/rendering/RenderListBox.cpp
r259597 r259846 744 744 } 745 745 746 void RenderListBox::setScrollLeft(int, ScrollType, ScrollClamping, bool)746 void RenderListBox::setScrollLeft(int, ScrollType, ScrollClamping, AnimatedScroll) 747 747 { 748 748 } … … 761 761 } 762 762 763 void RenderListBox::setScrollTop(int newTop, ScrollType, ScrollClamping, bool)763 void RenderListBox::setScrollTop(int newTop, ScrollType, ScrollClamping, AnimatedScroll) 764 764 { 765 765 // Determine an index and scroll to it. -
trunk/Source/WebCore/rendering/RenderListBox.h
r259597 r259846 107 107 int scrollWidth() const override; 108 108 int scrollHeight() const override; 109 void setScrollLeft(int, ScrollType, ScrollClamping, bool) override;110 void setScrollTop(int, ScrollType, ScrollClamping, bool) override;109 void setScrollLeft(int, ScrollType, ScrollClamping, AnimatedScroll) override; 110 void setScrollTop(int, ScrollType, ScrollClamping, AnimatedScroll) override; 111 111 112 112 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r259232 r259846 381 381 } 382 382 383 void RenderTextControlSingleLine::setScrollLeft(int newLeft, ScrollType, ScrollClamping, bool)383 void RenderTextControlSingleLine::setScrollLeft(int newLeft, ScrollType, ScrollClamping, AnimatedScroll) 384 384 { 385 385 if (innerTextElement()) … … 387 387 } 388 388 389 void RenderTextControlSingleLine::setScrollTop(int newTop, ScrollType, ScrollClamping, bool)389 void RenderTextControlSingleLine::setScrollTop(int newTop, ScrollType, ScrollClamping, AnimatedScroll) 390 390 { 391 391 if (innerTextElement()) -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.h
r255957 r259846 58 58 int scrollWidth() const override; 59 59 int scrollHeight() const override; 60 void setScrollLeft(int, ScrollType, ScrollClamping, bool) override;61 void setScrollTop(int, ScrollType, ScrollClamping, bool) override;60 void setScrollLeft(int, ScrollType, ScrollClamping, AnimatedScroll) override; 61 void setScrollTop(int, ScrollType, ScrollClamping, AnimatedScroll) override; 62 62 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = nullptr, RenderBox* startBox = nullptr, const IntPoint& wheelEventAbsolutePoint = IntPoint()) final; 63 63 bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = 0) final;
Note:
See TracChangeset
for help on using the changeset viewer.