summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/RenderTableCaption.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/rendering/RenderTableCaption.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/rendering/RenderTableCaption.cpp')
-rw-r--r--Source/WebCore/rendering/RenderTableCaption.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/WebCore/rendering/RenderTableCaption.cpp b/Source/WebCore/rendering/RenderTableCaption.cpp
index 6633158bf..38c4d7cca 100644
--- a/Source/WebCore/rendering/RenderTableCaption.cpp
+++ b/Source/WebCore/rendering/RenderTableCaption.cpp
@@ -24,8 +24,8 @@
namespace WebCore {
-RenderTableCaption::RenderTableCaption(Element& element, Ref<RenderStyle>&& style)
- : RenderBlockFlow(element, WTFMove(style))
+RenderTableCaption::RenderTableCaption(Element& element, PassRef<RenderStyle> style)
+ : RenderBlockFlow(element, std::move(style))
{
}
@@ -33,21 +33,29 @@ 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 downcast<RenderTable>(parent());
+ return toRenderTable(parent());
}
}