Changeset 152434 in webkit


Ignore:
Timestamp:
Jul 5, 2013 10:01:31 PM (11 years ago)
Author:
timothy_horton@apple.com
Message:

Tons of crashes on bots after r152425
https://bugs.webkit.org/show_bug.cgi?id=118440
<rdar://problem/14366772>

Reviewed by Sam Weinig.

Null-check the frame's page and early return. It's OK to do this
because it only happens when we're being torn down.

  • page/FrameView.cpp:

(WebCore::FrameView::minimumScrollPosition):
(WebCore::FrameView::maximumScrollPosition):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152433 r152434  
     12013-07-05  Tim Horton  <timothy_horton@apple.com>
     2
     3        Tons of crashes on bots after r152425
     4        https://bugs.webkit.org/show_bug.cgi?id=118440
     5        <rdar://problem/14366772>
     6
     7        Reviewed by Sam Weinig.
     8
     9        Null-check the frame's page and early return. It's OK to do this
     10        because it only happens when we're being torn down.
     11
     12        * page/FrameView.cpp:
     13        (WebCore::FrameView::minimumScrollPosition):
     14        (WebCore::FrameView::maximumScrollPosition):
     15
    1162013-07-05  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebCore/page/FrameView.cpp

    r152433 r152434  
    16431643{
    16441644    IntPoint minimumPosition(ScrollView::minimumScrollPosition());
    1645    
     1645
     1646    if (!m_frame->page())
     1647        return minimumPosition;
     1648
    16461649    if (m_frame == m_frame->page()->mainFrame() && m_scrollPinningBehavior == PinToBottom)
    16471650        minimumPosition.setY(maximumScrollPosition().y());
     
    16531656{
    16541657    IntPoint maximumOffset(contentsWidth() - visibleWidth() - scrollOrigin().x(), totalContentsSize().height() - visibleHeight() - scrollOrigin().y());
     1658
     1659    if (!m_frame->page())
     1660        return maximumOffset;
    16551661
    16561662    // With pagination enabled, we can have a negative maximum scroll position.
     
    16581664        || scrollOrigin() == IntPoint::zero())
    16591665        maximumOffset.clampNegativeToZero();
    1660    
     1666
    16611667    if (m_frame == m_frame->page()->mainFrame() && m_scrollPinningBehavior == PinToTop)
    16621668        maximumOffset.setY(minimumScrollPosition().y());
Note: See TracChangeset for help on using the changeset viewer.