Changeset 152434 in webkit
- Timestamp:
- Jul 5, 2013 10:01:31 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r152433 r152434 1 2013-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 1 16 2013-07-05 Tim Horton <timothy_horton@apple.com> 2 17 -
trunk/Source/WebCore/page/FrameView.cpp
r152433 r152434 1643 1643 { 1644 1644 IntPoint minimumPosition(ScrollView::minimumScrollPosition()); 1645 1645 1646 if (!m_frame->page()) 1647 return minimumPosition; 1648 1646 1649 if (m_frame == m_frame->page()->mainFrame() && m_scrollPinningBehavior == PinToBottom) 1647 1650 minimumPosition.setY(maximumScrollPosition().y()); … … 1653 1656 { 1654 1657 IntPoint maximumOffset(contentsWidth() - visibleWidth() - scrollOrigin().x(), totalContentsSize().height() - visibleHeight() - scrollOrigin().y()); 1658 1659 if (!m_frame->page()) 1660 return maximumOffset; 1655 1661 1656 1662 // With pagination enabled, we can have a negative maximum scroll position. … … 1658 1664 || scrollOrigin() == IntPoint::zero()) 1659 1665 maximumOffset.clampNegativeToZero(); 1660 1666 1661 1667 if (m_frame == m_frame->page()->mainFrame() && m_scrollPinningBehavior == PinToTop) 1662 1668 maximumOffset.setY(minimumScrollPosition().y());
Note: See TracChangeset
for help on using the changeset viewer.