| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/html/HTMLRTElement.h" | 5 #include "core/html/HTMLRTElement.h" |
| 6 | 6 |
| 7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
| 8 #include "core/layout/LayoutRubyText.h" | 8 #include "core/layout/LayoutRubyText.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 using namespace HTMLNames; | 12 using namespace HTMLNames; |
| 13 | 13 |
| 14 inline HTMLRTElement::HTMLRTElement(Document& document) | 14 inline HTMLRTElement::HTMLRTElement(Document& document) |
| 15 : HTMLElement(rtTag, document) {} | 15 : HTMLElement(rtTag, document) {} |
| 16 | 16 |
| 17 DEFINE_NODE_FACTORY(HTMLRTElement) | 17 DEFINE_NODE_FACTORY(HTMLRTElement) |
| 18 | 18 |
| 19 LayoutObject* HTMLRTElement::createLayoutObject(const ComputedStyle& style) { | 19 LayoutObject* HTMLRTElement::createLayoutObject(const ComputedStyle& style) { |
| 20 if (style.display() == EDisplay::Block) | 20 if (style.display() == EDisplay::kBlock) |
| 21 return new LayoutRubyText(this); | 21 return new LayoutRubyText(this); |
| 22 return LayoutObject::createObject(this, style); | 22 return LayoutObject::createObject(this, style); |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace blink | 25 } // namespace blink |
| OLD | NEW |