Changeset 147664 in webkit


Ignore:
Timestamp:
Apr 4, 2013 12:58:45 PM (11 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r147373): Auto-sizing doesn't always respect minimum width changes
https://bugs.webkit.org/show_bug.cgi?id=113947
<rdar://problem/13579024>

Reviewed by Anders Carlsson.

Reset the FrameView size to the minimum auto-sizing size
before performing auto-sizing. We were already resetting the height,
but not the width, instead using the FrameView's current width.

This means that changing the minimum width without also manually
resizing the FrameView will never see the width change.

Auto-sizing tests are not working on Mac yet.

  • page/FrameView.cpp:

(WebCore::FrameView::autoSizeIfEnabled):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147663 r147664  
     12013-04-04  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r147373): Auto-sizing doesn't always respect minimum width changes
     4        https://bugs.webkit.org/show_bug.cgi?id=113947
     5        <rdar://problem/13579024>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        Reset the FrameView size to the minimum auto-sizing size
     10        before performing auto-sizing. We were already resetting the height,
     11        but not the width, instead using the FrameView's current width.
     12
     13        This means that changing the minimum width without also manually
     14        resizing the FrameView will never see the width change.
     15
     16        Auto-sizing tests are not working on Mac yet.
     17
     18        * page/FrameView.cpp:
     19        (WebCore::FrameView::autoSizeIfEnabled):
     20
    1212013-04-04  Martin Robinson  <mrobinson@igalia.com>
    222
  • trunk/Source/WebCore/page/FrameView.cpp

    r147471 r147664  
    27792779        return;
    27802780
    2781     // Start from the minimum height and allow it to grow.
    2782     resize(frameRect().width(), m_minAutoSize.height());
     2781    // Start from the minimum size and allow it to grow.
     2782    resize(m_minAutoSize.width(), m_minAutoSize.height());
    27832783
    27842784    IntSize size = frameRect().size();
Note: See TracChangeset for help on using the changeset viewer.