Changeset 63943 in webkit


Ignore:
Timestamp:
Jul 22, 2010 7:36:02 PM (14 years ago)
Author:
morrita@google.com
Message:

2010-07-22 MORITA Hajime <morrita@google.com>

Reviewed by Ojan Vafai.

Autoscroll on selection should take scrollbars into account as outside of the content.
https://bugs.webkit.org/show_bug.cgi?id=40403

ScrollView's scroll-bar was considered as a part of content rect,
that prevents autoscroll to happen when the pointer is over the
scroll-bar. This change excluded scroll-bar region from scrolling
delta calculation.

Test: WebCore/manual-tests/autoscroll-over-scrollbar.html

  • rendering/RenderLayer.cpp: (WebCore::RenderLayer::scrollRectToVisible):
Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63942 r63943  
     12010-07-22  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        Autoscroll on selection should take scrollbars into account as outside of the content.
     6        https://bugs.webkit.org/show_bug.cgi?id=40403
     7
     8        ScrollView's scroll-bar was considered as a part of content rect,
     9        that prevents autoscroll to happen when the pointer is over the
     10        scroll-bar.  This change excluded scroll-bar region from scrolling
     11        delta calculation.
     12       
     13        Test: WebCore/manual-tests/autoscroll-over-scrollbar.html
     14
     15        * rendering/RenderLayer.cpp:
     16        (WebCore::RenderLayer::scrollRectToVisible):
     17
    1182010-07-22  Kent Tamura  <tkent@chromium.org>
    219
  • trunk/WebCore/rendering/RenderLayer.cpp

    r63269 r63943  
    14381438                newRect.setY(rect.y() - frameView->scrollY() + frameView->y());
    14391439            } else {
    1440                 IntRect viewRect = frameView->visibleContentRect(true);
     1440                IntRect viewRect = frameView->visibleContentRect();
    14411441                IntRect r = getRectToExpose(viewRect, rect, alignX, alignY);
    14421442               
Note: See TracChangeset for help on using the changeset viewer.