Crash in SVGSVGElement::currentViewBoxRect.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jan 2012 21:35:44 +0000 (21:35 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jan 2012 21:35:44 +0000 (21:35 +0000)
commit0f08ab5cc369379f3caf5a7f887f629e7b9d08b5
treeaddd43562c4d3400960a8488216b5732ef8008ea
parent0d67e0218cd7844a4075074e2e88e755e4de4a87
Crash in SVGSVGElement::currentViewBoxRect.
https://bugs.webkit.org/show_bug.cgi?id=77121

Reviewed by Nikolas Zimmermann.

Source/WebCore:

Symbols shouldn't be rendered. Revert the ASSERT
from r105513 into a hard check.

Test: svg/custom/symbol-viewport-element-crash.svg

* svg/SVGLengthContext.cpp:
(WebCore::SVGLengthContext::determineViewport):

LayoutTests:

* svg/custom/symbol-viewport-element-crash-expected.txt: Added.
* svg/custom/symbol-viewport-element-crash.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/symbol-viewport-element-crash-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/symbol-viewport-element-crash.svg [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGLengthContext.cpp