blob: d1fb7c03f22e953056ba1994c14bfee8a5030511 [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 "config.h"
#include "core/html/HTMLRTElement.h"
#include "core/HTMLNames.h"
#include "core/rendering/RenderRubyText.h"
namespace WebCore {
using namespace HTMLNames;
inline HTMLRTElement::HTMLRTElement(Document& document)
: HTMLElement(rtTag, document)
{
}
DEFINE_NODE_FACTORY(HTMLRTElement)
RenderObject* HTMLRTElement::createRenderer(RenderStyle* style)
{
if (style->display() == BLOCK)
return new RenderRubyText(this);
return RenderObject::createObject(this, style);
}
}