From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/rendering/RenderTableCaption.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'Source/WebCore/rendering/RenderTableCaption.h') 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); + RenderTableCaption(Element&, RenderStyle&&); virtual ~RenderTableCaption(); - Element& element() const { return toElement(nodeForNonAnonymous()); } + Element& element() const { return downcast(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()) -- cgit v1.2.1