Changeset 109431 in webkit


Ignore:
Timestamp:
Mar 1, 2012 2:42:44 PM (12 years ago)
Author:
mitz@apple.com
Message:

ScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
https://bugs.webkit.org/show_bug.cgi?id=80047

Reviewed by Anders Carlsson.

  • platform/ScrollView.cpp:

(WebCore::ScrollView::setFrameRect): Added a check that the new frame size differs from the
old one before calling contentsResized().

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109424 r109431  
     12012-03-01  Dan Bernstein  <mitz@apple.com>
     2
     3        ScrollView::setFrameRect() calls contentsResized() even when the frame size is unchanged
     4        https://bugs.webkit.org/show_bug.cgi?id=80047
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/ScrollView.cpp:
     9        (WebCore::ScrollView::setFrameRect): Added a check that the new frame size differs from the
     10        old one before calling contentsResized().
     11
    1122012-03-01  James Robinson  <jamesr@chromium.org>
    213
  • trunk/Source/WebCore/platform/ScrollView.cpp

    r108536 r109431  
    845845
    846846    updateScrollbars(scrollOffset());
    847    
    848     if (!m_useFixedLayout)
     847
     848    if (!m_useFixedLayout && oldRect.size() != newRect.size())
    849849        contentsResized();
    850850}
Note: See TracChangeset for help on using the changeset viewer.