Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / svg / RenderSVGRect.h
index 8675f11..4703e4d 100644 (file)
 #ifndef RenderSVGRect_h
 #define RenderSVGRect_h
 
-#include "core/rendering/svg/RenderSVGPath.h"
-#include "core/svg/SVGRectElement.h"
+#include "core/rendering/svg/RenderSVGShape.h"
 
 namespace blink {
 
-class RenderSVGRect FINAL : public RenderSVGShape {
+class RenderSVGRect final : public RenderSVGShape {
 public:
     explicit RenderSVGRect(SVGRectElement*);
     virtual ~RenderSVGRect();
 
+    virtual ShapeGeometryCodePath geometryCodePath() const override { return m_usePathFallback ? PathGeometry : RectGeometryFastPath; }
+
 private:
-    virtual const char* renderName() const OVERRIDE { return "RenderSVGRect"; }
-
-    virtual void updateShapeFromElement() OVERRIDE;
-    virtual bool isShapeEmpty() const OVERRIDE { return m_usePathFallback ? RenderSVGShape::isShapeEmpty() : m_fillBoundingBox.isEmpty(); }
-    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 const char* renderName() const override { return "RenderSVGRect"; }
+
+    virtual void updateShapeFromElement() override;
+    virtual bool isShapeEmpty() const override { return m_usePathFallback ? RenderSVGShape::isShapeEmpty() : m_fillBoundingBox.isEmpty(); }
+    virtual bool shapeDependentStrokeContains(const FloatPoint&) override;
+    virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const override;
 
 private:
     FloatRect m_innerStrokeRect;