diff options
Diffstat (limited to 'Source/WebCore/rendering/svg/RenderSVGBlock.h')
-rw-r--r-- | Source/WebCore/rendering/svg/RenderSVGBlock.h | 28 |
1 files changed, 13 insertions, 15 deletions
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<SVGGraphicsElement>(nodeForNonAnonymous()); } protected: - RenderSVGBlock(SVGGraphicsElement&, PassRef<RenderStyle>); - 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<IntRect>&, const LayoutPoint& accumulatedOffset) const; + void absoluteRects(Vector<IntRect>&, 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()) |