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/svg/RenderSVGBlock.h | 28 +++++++++++++-------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'Source/WebCore/rendering/svg/RenderSVGBlock.h') diff --git a/Source/WebCore/rendering/svg/RenderSVGBlock.h b/Source/WebCore/rendering/svg/RenderSVGBlock.h index 23efff55d..c231156ed 100644 --- a/Source/WebCore/rendering/svg/RenderSVGBlock.h +++ b/Source/WebCore/rendering/svg/RenderSVGBlock.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2006 Apple Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,10 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef RenderSVGBlock_h -#define RenderSVGBlock_h +#pragma once -#if ENABLE(SVG) #include "RenderBlockFlow.h" #include "SVGGraphicsElement.h" #include "SVGRenderSupport.h" @@ -31,26 +29,26 @@ class SVGElement; class RenderSVGBlock : public RenderBlockFlow { public: - virtual LayoutRect visualOverflowRect() const override final; + LayoutRect visualOverflowRect() const final; - SVGGraphicsElement& graphicsElement() const { return toSVGGraphicsElement(nodeForNonAnonymous()); } + SVGGraphicsElement& graphicsElement() const { return downcast(nodeForNonAnonymous()); } protected: - RenderSVGBlock(SVGGraphicsElement&, PassRef); - virtual void willBeDestroyed() override; + RenderSVGBlock(SVGGraphicsElement&, RenderStyle&&); + void willBeDestroyed() override; private: void element() const = delete; - virtual void updateFromStyle() override final; + void updateFromStyle() final; - virtual bool isRenderSVGBlock() const override final { return true; }; + bool isRenderSVGBlock() const final { return true; } - virtual void absoluteRects(Vector&, const LayoutPoint& accumulatedOffset) const; + void absoluteRects(Vector&, const LayoutPoint& accumulatedOffset) const override; - virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override final; + void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final; }; -} -#endif -#endif +} // namespace WebCore + +SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGBlock, isRenderSVGBlock()) -- cgit v1.2.1