blob: a115a3df525c0518888474dd8b31e7d6086b39a3 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/html/html_rt_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/layout/layout_ruby_text.h"
namespace blink {
using namespace html_names;
inline HTMLRTElement::HTMLRTElement(Document& document)
: HTMLElement(kRtTag, document) {}
LayoutObject* HTMLRTElement::CreateLayoutObject(const ComputedStyle& style) {
if (style.Display() == EDisplay::kBlock)
return new LayoutRubyText(this);
return LayoutObject::CreateObject(this, style);
} // namespace blink