Changeset 167807 in webkit


Ignore:
Timestamp:
Apr 25, 2014 8:27:55 AM (10 years ago)
Author:
Brent Fulgham
Message:

ScrollingCoordinator is unaware of topContentInset
https://bugs.webkit.org/show_bug.cgi?id=132158
<rdar://problem/16706152>

Reviewed by Darin Adler.

Source/WebCore:
Test: platform/mac/fast/scrolling/scroll-select-bottom-test.html

The calculation of non-fast-scrollable regions does not currently take
the topContentOffset into account. Consequently, the logic that decides
whether to stay on the scrolling thread, or drop down to an individual
page element, can make the wrong choice. This is especially true for
small scrollable regions (such as <select> elements), where the
topContentInset may be quite close to the size of the scrollable

element itself.

  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::computeNonFastScrollableRegion): Also
include the topContentInset value in our calculation.

LayoutTests:

  • platform/mac/fast/scrolling/scroll-select-bottom-test-expected.txt: Added.
  • platform/mac/fast/scrolling/scroll-select-bottom-test.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167805 r167807  
     12014-04-25  Brent Fulgham  <bfulgham@apple.com>
     2
     3        ScrollingCoordinator is unaware of topContentInset
     4        https://bugs.webkit.org/show_bug.cgi?id=132158
     5        <rdar://problem/16706152>
     6
     7        Reviewed by Darin Adler.
     8
     9        * platform/mac/fast/scrolling/scroll-select-bottom-test-expected.txt: Added.
     10        * platform/mac/fast/scrolling/scroll-select-bottom-test.html: Added.
     11
    1122014-04-25  Miyoung Shin  <myid.shin@samsung.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r167806 r167807  
     12014-04-25  Brent Fulgham  <bfulgham@apple.com>
     2
     3        ScrollingCoordinator is unaware of topContentInset
     4        https://bugs.webkit.org/show_bug.cgi?id=132158
     5        <rdar://problem/16706152>
     6
     7        Reviewed by Darin Adler.
     8
     9        Test: platform/mac/fast/scrolling/scroll-select-bottom-test.html
     10
     11        The calculation of non-fast-scrollable regions does not currently take
     12        the topContentOffset into account. Consequently, the logic that decides
     13        whether to stay on the scrolling thread, or drop down to an individual
     14        page element, can make the wrong choice. This is especially true for
     15        small scrollable regions (such as <select> elements), where the
     16        topContentInset may be quite close to the size of the scrollable
     17         element itself.
     18
     19        * page/scrolling/ScrollingCoordinator.cpp:
     20        (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion): Also
     21        include the topContentInset value in our calculation.
     22
    1232014-04-25  Javier Fernandez  <jfernandez@igalia.com>
    224
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

    r166811 r167807  
    125125    IntPoint offset = frameLocation;
    126126    offset.moveBy(frameView->frameRect().location());
     127    offset.move(0, frameView->topContentInset());
    127128
    128129    if (const FrameView::ScrollableAreaSet* scrollableAreas = frameView->scrollableAreas()) {
Note: See TracChangeset for help on using the changeset viewer.