summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/svg/RenderSVGRect.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/rendering/svg/RenderSVGRect.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/rendering/svg/RenderSVGRect.h')
-rw-r--r--Source/WebCore/rendering/svg/RenderSVGRect.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/Source/WebCore/rendering/svg/RenderSVGRect.h b/Source/WebCore/rendering/svg/RenderSVGRect.h
index 026ee6309..c305726b8 100644
--- a/Source/WebCore/rendering/svg/RenderSVGRect.h
+++ b/Source/WebCore/rendering/svg/RenderSVGRect.h
@@ -28,6 +28,7 @@
#ifndef RenderSVGRect_h
#define RenderSVGRect_h
+#if ENABLE(SVG)
#include "RenderSVGPath.h"
#include "SVGRectElement.h"
@@ -35,7 +36,7 @@ namespace WebCore {
class RenderSVGRect final : public RenderSVGShape {
public:
- RenderSVGRect(SVGRectElement&, Ref<RenderStyle>&&);
+ RenderSVGRect(SVGRectElement&, PassRef<RenderStyle>);
virtual ~RenderSVGRect();
SVGRectElement& rectElement() const;
@@ -43,15 +44,14 @@ public:
private:
void graphicsElement() const = delete;
- virtual const char* renderName() const override { return "RenderSVGRect"; }
+ virtual const char* renderName() const { return "RenderSVGRect"; }
- virtual void updateShapeFromElement() override;
- virtual bool isEmpty() const override { return m_usePathFallback ? RenderSVGShape::isEmpty() : m_fillBoundingBox.isEmpty(); }
- virtual bool isRenderingDisabled() const override;
- virtual void fillShape(GraphicsContext&) const override;
- virtual void strokeShape(GraphicsContext&) const override;
- virtual bool shapeDependentStrokeContains(const FloatPoint&) override;
- virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const override;
+ virtual void updateShapeFromElement();
+ virtual bool isEmpty() const { return m_usePathFallback ? RenderSVGShape::isEmpty() : m_fillBoundingBox.isEmpty(); };
+ virtual void fillShape(GraphicsContext*) const;
+ virtual void strokeShape(GraphicsContext*) const;
+ virtual bool shapeDependentStrokeContains(const FloatPoint&);
+ virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const;
private:
FloatRect m_innerStrokeRect;
@@ -61,4 +61,5 @@ private:
}
+#endif // ENABLE(SVG)
#endif