Addressing post-review comments in r185756.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jun 2015 20:31:10 +0000 (20:31 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jun 2015 20:31:10 +0000 (20:31 +0000)
* html/RubyTextElement.cpp:
(WebCore::RubyTextElement::createElementRenderer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186129 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/RubyTextElement.cpp

index 211fe9d..b8270b3 100644 (file)
@@ -1,5 +1,12 @@
 2015-06-30  Zalan Bujtas  <zalan@apple.com>
 
+        Addressing post-review comments in r185756.
+
+        * html/RubyTextElement.cpp:
+        (WebCore::RubyTextElement::createElementRenderer):
+
+2015-06-30  Zalan Bujtas  <zalan@apple.com>
+
         Addressing post-review comments in r185916
 
         * platform/LayoutUnit.h:
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);
 }