REGRESSION(r95573): Crash when loading SVG documents in a flattened frame or any...
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 20:55:50 +0000 (20:55 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 20:55:50 +0000 (20:55 +0000)
commit52dff5f6016170ebe8cdcdc051fc79dc58cb046b
treee7b82d7bca3ce9aaa0426d61d2066458ff0b3a2f
parentdb42a507c22f6c09377942c7d513d9809c4e3dec
REGRESSION(r95573): Crash when loading SVG documents in a flattened frame or any SVG document in Chromium/Mac.
https://bugs.webkit.org/show_bug.cgi?id=68938

Source/WebCore:

Reviewed by David Hyatt.

Test: all svg tests in LayoutTests.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::computeBlockPreferredLogicalWidths): Added a null-check for containingBlock.

Tools:

Made Chromium/Mac DRT better match how Chromium/Mac queries WebKit.

Reviewed by David Hyatt.

* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::didUpdateLayout): Added width/height queries.
* DumpRenderTree/chromium/WebViewHost.h: Updated defs.

LayoutTests:

Reviewed by David Hyatt.

* fast/frames/flattening/crash-svg-document-expected.txt: Added.
* fast/frames/flattening/crash-svg-document.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/flattening/crash-svg-document-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/flattening/crash-svg-document.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp
Tools/ChangeLog
Tools/DumpRenderTree/chromium/WebViewHost.cpp
Tools/DumpRenderTree/chromium/WebViewHost.h