X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fhtml%2FRubyTextElement.cpp;h=c878b211cb636e72f28782949249b56ebdf2c8a7;hp=2c1a8b49d4157c2e9598c89f252b13210b8925b2;hb=025584a4701a62f811871280ef44fb197a672b30;hpb=f1a2adee51ba754a11302f584367e66e3badcec5 diff --git a/Source/WebCore/html/RubyTextElement.cpp b/Source/WebCore/html/RubyTextElement.cpp index 2c1a8b4..c878b21 100644 --- a/Source/WebCore/html/RubyTextElement.cpp +++ b/Source/WebCore/html/RubyTextElement.cpp @@ -48,7 +48,7 @@ Ref RubyTextElement::create(const QualifiedName& tagName, Docum RenderPtr RubyTextElement::createElementRenderer(Ref&& style, const RenderTreePosition& insertionPosition) { // RenderRubyText requires its parent to be RenderRubyRun. - if (isRuby(insertionPosition.parent())) + if (isRuby(insertionPosition.parent()) && style->display() == BLOCK) return createRenderer(*this, WTF::move(style)); return HTMLElement::createElementRenderer(WTF::move(style), insertionPosition); }