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