summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/svg/RenderSVGRect.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/svg/RenderSVGRect.h')
-rw-r--r--Source/WebCore/rendering/svg/RenderSVGRect.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/Source/WebCore/rendering/svg/RenderSVGRect.h b/Source/WebCore/rendering/svg/RenderSVGRect.h
index c305726b8..98f7c5c91 100644
--- a/Source/WebCore/rendering/svg/RenderSVGRect.h
+++ b/Source/WebCore/rendering/svg/RenderSVGRect.h
@@ -25,10 +25,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RenderSVGRect_h
-#define RenderSVGRect_h
+#pragma once
-#if ENABLE(SVG)
#include "RenderSVGPath.h"
#include "SVGRectElement.h"
@@ -36,7 +34,7 @@ namespace WebCore {
class RenderSVGRect final : public RenderSVGShape {
public:
- RenderSVGRect(SVGRectElement&, PassRef<RenderStyle>);
+ RenderSVGRect(SVGRectElement&, RenderStyle&&);
virtual ~RenderSVGRect();
SVGRectElement& rectElement() const;
@@ -44,14 +42,15 @@ public:
private:
void graphicsElement() const = delete;
- virtual const char* renderName() const { return "RenderSVGRect"; }
+ const char* renderName() const override { return "RenderSVGRect"; }
- 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;
+ void updateShapeFromElement() override;
+ bool isEmpty() const override { return m_usePathFallback ? RenderSVGShape::isEmpty() : m_fillBoundingBox.isEmpty(); }
+ bool isRenderingDisabled() const override;
+ void fillShape(GraphicsContext&) const override;
+ void strokeShape(GraphicsContext&) const override;
+ bool shapeDependentStrokeContains(const FloatPoint&) override;
+ bool shapeDependentFillContains(const FloatPoint&, const WindRule) const override;
private:
FloatRect m_innerStrokeRect;
@@ -59,7 +58,4 @@ private:
bool m_usePathFallback;
};
-}
-
-#endif // ENABLE(SVG)
-#endif
+} // namespace WebCore