RenderRubyText requires RenderRubyRun parent.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jun 2015 18:18:05 +0000 (18:18 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jun 2015 18:18:05 +0000 (18:18 +0000)
commit5e85074bb9e1bd47b25ddc2a1408b11212dbb203
tree6b7cab315b2cddd64de7e2540005f6ef7d118bfa
parent0f51222f28d6437efbb37f6ac80e70a30c29e1b8
RenderRubyText requires RenderRubyRun parent.
https://bugs.webkit.org/show_bug.cgi?id=146148
rdar://problem/21423319

Reviewed by Simon Fraser.

RenderRubyText expects its parent to be RenderRubyRun and since a
a non-block <rt> requires anonymous wrapper, we should check whether
the display type is actually block.

Source/WebCore:

Test: fast/ruby/crash-when-ruby-rt-is-non-block.html

* html/RubyTextElement.cpp:
(WebCore::RubyTextElement::createElementRenderer):

LayoutTests:

* fast/ruby/crash-when-ruby-rt-is-non-block-expected.txt: Added.
* fast/ruby/crash-when-ruby-rt-is-non-block.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/ruby/crash-when-ruby-rt-is-non-block-expected.txt [new file with mode: 0644]
LayoutTests/fast/ruby/crash-when-ruby-rt-is-non-block.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/RubyTextElement.cpp