This source file includes following definitions.
- containingBlockLogicalWidthForContent
- insertedIntoTree
- willBeRemovedFromTree
- table
#include "config.h"
#include "core/rendering/RenderTableCaption.h"
#include "core/rendering/RenderTable.h"
namespace WebCore {
RenderTableCaption::RenderTableCaption(Element* element)
: RenderBlockFlow(element)
{
}
RenderTableCaption::~RenderTableCaption()
{
}
LayoutUnit RenderTableCaption::containingBlockLogicalWidthForContent() const
{
RenderBlock* cb = containingBlock();
return cb->logicalWidth();
}
void RenderTableCaption::insertedIntoTree()
{
RenderBlockFlow::insertedIntoTree();
table()->addCaption(this);
}
void RenderTableCaption::willBeRemovedFromTree()
{
RenderBlockFlow::willBeRemovedFromTree();
table()->removeCaption(this);
}
RenderTable* RenderTableCaption::table() const
{
return toRenderTable(parent());
}
}