<rdar://problem/9271848> Crash when the document element is removed
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Apr 2011 22:29:28 +0000 (22:29 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Apr 2011 22:29:28 +0000 (22:29 +0000)
commit6f03033c86059f1f5d9c38890605f1f4b7745ed1
tree2a7f7d93d75857f08bc00137dfdb25eb59da1722
parent597195fdc8801e18ee47575bcec224dcce6a1f72
<rdar://problem/9271848> Crash when the document element is removed

Reviewed by Beth Dakin.

Source/WebCore:

Test: fast/events/overflow-viewport-renderer-deleted.html

* page/FrameView.cpp:
(WebCore::FrameView::calculateScrollbarModesForLayout): Reset m_viewportRenderer, in case this
function takes a code path that doesn’t call applyOverflowToViewport().
(WebCore::FrameView::layout): Whitespace change.

LayoutTests:

* fast/events/overflow-viewport-renderer-deleted-expected.txt: Added.
* fast/events/overflow-viewport-renderer-deleted.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/overflow-viewport-renderer-deleted-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/overflow-viewport-renderer-deleted.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/FrameView.cpp