This source file includes following definitions.
- create
- createRenderer
#include "config.h"
#include "core/html/HTMLRTElement.h"
#include "HTMLNames.h"
#include "core/rendering/RenderRubyText.h"
namespace WebCore {
using namespace HTMLNames;
HTMLRTElement::HTMLRTElement(Document& document)
: HTMLElement(rtTag, document)
{
}
PassRefPtr<HTMLRTElement> HTMLRTElement::create(Document& document)
{
return adoptRef(new HTMLRTElement(document));
}
RenderObject* HTMLRTElement::createRenderer(RenderStyle* style)
{
if (style->display() == BLOCK)
return new RenderRubyText(this);
return RenderObject::createObject(this, style);
}
}