Changeset 89065 in webkit


Ignore:
Timestamp:
Jun 16, 2011 2:18:35 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-16 Sailesh Agrawal <sail@chromium.org>

Reviewed by Mihai Parparita.

[Chromium] Overlay scrollbars leave glitches on web content
https://bugs.webkit.org/show_bug.cgi?id=62383

Enable overlay scrollbars on Chromium Mac.

  • platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm: (preferredScrollerStyle):

2011-06-16 Sailesh Agrawal <sail@chromium.org>

Reviewed by Mihai Parparita.

[Chromium] Overlay scrollbars leave glitches on web content
https://bugs.webkit.org/show_bug.cgi?id=62383

Fix glitches when scrolling with overlay scrollbars. The problem was that the render widget was copying the scrollbars when scrolling. Fix was to intersect the clip rect with the scroll rect. This is the same thing that Safari does (see WebChromeClient::scroll).

  • src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::scroll):
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r89057 r89065  
     12011-06-16  Sailesh Agrawal  <sail@chromium.org>
     2
     3        Reviewed by Mihai Parparita.
     4
     5        [Chromium] Overlay scrollbars leave glitches on web content
     6        https://bugs.webkit.org/show_bug.cgi?id=62383
     7
     8        Enable overlay scrollbars on Chromium Mac.
     9
     10        * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
     11        (preferredScrollerStyle):
     12
    1132011-06-16  una sabovic  <una.sabovic@palm.com>
    214
  • trunk/Source/WebCore/platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm

    r89016 r89065  
    125125static NSScrollerStyle preferredScrollerStyle()
    126126{
    127     // TODO(sail): Disable overlay scrollbars for now until the following issues are fixed:
    128     // #1: Invalidation issues causes the scrollbar to leave trailing artifacts.
    129     // #2: Find tick marks need to be drawn on the scrollbar track.
    130     return NSScrollerStyleLegacy;
    131 
    132127    if ([NSScroller respondsToSelector:@selector(preferredScrollerStyle)])
    133128        return [NSScroller preferredScrollerStyle];
  • trunk/Source/WebKit/chromium/ChangeLog

    r89063 r89065  
     12011-06-16  Sailesh Agrawal  <sail@chromium.org>
     2
     3        Reviewed by Mihai Parparita.
     4
     5        [Chromium] Overlay scrollbars leave glitches on web content
     6        https://bugs.webkit.org/show_bug.cgi?id=62383
     7
     8        Fix glitches when scrolling with overlay scrollbars. The problem was that the render widget was copying the scrollbars when scrolling. Fix was to intersect the clip rect with the scroll rect. This is the same thing that Safari does (see WebChromeClient::scroll).
     9
     10        * src/ChromeClientImpl.cpp:
     11        (WebKit::ChromeClientImpl::scroll):
     12
    1132011-06-16  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebKit/chromium/src/ChromeClientImpl.cpp

    r88582 r89065  
    556556            int dx = scrollDelta.width();
    557557            int dy = scrollDelta.height();
    558             m_webView->client()->didScrollRect(dx, dy, clipRect);
     558            m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect, clipRect));
    559559        }
    560560#if USE(ACCELERATED_COMPOSITING)
Note: See TracChangeset for help on using the changeset viewer.