diff options
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()) |