Changeset 122681 in webkit


Ignore:
Timestamp:
Jul 15, 2012, 1:15:10 PM (13 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/11875795> REGRESSION (tiled drawing): Page’s scroll bars flash with each character you type in a textarea (affects Wikipedia and YouTube)
https://bugs.webkit.org/show_bug.cgi?id=91348

Reviewed by Anders Carlsson.

  • platform/ScrollableArea.cpp:

(WebCore::ScrollableArea::scrollPositionChanged): Added an early return if the scroll position
did not, in fact, change. This avoids the call to ScrollAnimator::notifyContentAreaScrolled,
which is what causes the scroll bars to flash.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Source/WebCore/ChangeLog

    r122676 r122681  
     12012-07-15  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/11875795> REGRESSION (tiled drawing): Page’s scroll bars flash with each character you type in a textarea (affects Wikipedia and YouTube)
     4        https://bugs.webkit.org/show_bug.cgi?id=91348
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/ScrollableArea.cpp:
     9        (WebCore::ScrollableArea::scrollPositionChanged): Added an early return if the scroll position
     10        did not, in fact, change. This avoids the call to ScrollAnimator::notifyContentAreaScrolled,
     11        which is what causes the scroll bars to flash.
     12
    1132012-07-14  Eric Carlson  <eric.carlson@apple.com>
    214
  • TabularUnified trunk/Source/WebCore/platform/ScrollableArea.cpp

    r119684 r122681  
    143143void ScrollableArea::scrollPositionChanged(const IntPoint& position)
    144144{
     145    IntPoint oldPosition = scrollPosition();
    145146    // Tell the derived class to scroll its contents.
    146147    setScrollOffset(position);
     148
     149    if (scrollPosition() == oldPosition)
     150        return;
    147151
    148152    Scrollbar* verticalScrollbar = this->verticalScrollbar();
Note: See TracChangeset for help on using the changeset viewer.