diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/rendering/RenderTableCaption.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/rendering/RenderTableCaption.h')
-rw-r--r-- | Source/WebCore/rendering/RenderTableCaption.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/WebCore/rendering/RenderTableCaption.h b/Source/WebCore/rendering/RenderTableCaption.h index 644160909..7fb19cf01 100644 --- a/Source/WebCore/rendering/RenderTableCaption.h +++ b/Source/WebCore/rendering/RenderTableCaption.h @@ -17,8 +17,7 @@ * Boston, MA 02110-1301, USA. */ -#ifndef RenderTableCaption_h -#define RenderTableCaption_h +#pragma once #include "RenderBlockFlow.h" @@ -28,24 +27,22 @@ class RenderTable; class RenderTableCaption final : public RenderBlockFlow { public: - RenderTableCaption(Element&, PassRef<RenderStyle>); + RenderTableCaption(Element&, RenderStyle&&); virtual ~RenderTableCaption(); - Element& element() const { return toElement(nodeForNonAnonymous()); } + Element& element() const { return downcast<Element>(nodeForNonAnonymous()); } - virtual LayoutUnit containingBlockLogicalWidthForContent() const override; + LayoutUnit containingBlockLogicalWidthForContent() const override { return containingBlock()->logicalWidth(); } private: - virtual bool isTableCaption() const override { return true; } + bool isTableCaption() const override { return true; } - virtual void insertedIntoTree() override; - virtual void willBeRemovedFromTree() override; + void insertedIntoTree() override; + void willBeRemovedFromTree() override; RenderTable* table() const; }; -RENDER_OBJECT_TYPE_CASTS(RenderTableCaption, isTableCaption()) - } // namespace WebCore -#endif // RenderTableCaption_h +SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderTableCaption, isTableCaption()) |