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/svg/RenderSVGBlock.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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()) |