Addressing post-review comments in r185756.
[WebKit-https.git] / Source / WebCore / html / RubyTextElement.cpp
index b7924c7..c878b21 100644 (file)
@@ -48,7 +48,7 @@ Ref<RubyTextElement> RubyTextElement::create(const QualifiedName& tagName, Docum
 RenderPtr<RenderElement> RubyTextElement::createElementRenderer(Ref<RenderStyle>&& style, const RenderTreePosition& insertionPosition)
 {
     // RenderRubyText requires its parent to be RenderRubyRun.
-    if (isRuby(insertionPosition.parent()) && style.get().display() == BLOCK)
+    if (isRuby(insertionPosition.parent()) && style->display() == BLOCK)
         return createRenderer<RenderRubyText>(*this, WTF::move(style));
     return HTMLElement::createElementRenderer(WTF::move(style), insertionPosition);
 }