-
yaar@chromium.org authored
Reviewed by David Hyatt. Check that the node is a text node before doing a static cast to a Text class pointer. https://bugs.webkit.org/show_bug.cgi?id=38626 Test: fast/text/text-transform-nontext-node-crash.xhtml * rendering/RenderText.cpp: (WebCore::RenderText::originalText): * rendering/RenderTextFragment.cpp: (WebCore::RenderTextFragment::originalText): (WebCore::RenderTextFragment::previousCharacter): 2010-05-19 Abhishek Arya <inferno@chromium.org> Reviewed by David Hyatt. Tests that text transformation applied to a non-text node does not result in crash. https://bugs.webkit.org/show_bug.cgi?id=38626 * fast/text/text-transform-nontext-node-crash-expected.txt: Added. * fast/text/text-transform-nontext-node-crash.xhtml: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0a6907d8