-
enrica@apple.com authored
<rdar://problem/7318656> https://bugs.webkit.org/show_bug.cgi?id=31023 Reviewed by Adele Peterson and Dan Bernstein. WebCore: Test: editing/execCommand/align-in-span.html * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock): Modified comment on containingBlock returning NULL. * rendering/RenderText.cpp: (WebCore::RenderText::setSelectionState): Added check for NULL return from containingBlock, since it is possible when dealing with orphaned trees. LayoutTests: * editing/execCommand/align-in-span-expected.txt: Added. * editing/execCommand/align-in-span.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9a4d3950