Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / svg / RenderSVGGradientStop.h
index 9232ffb..02e08ac 100644 (file)
@@ -29,27 +29,26 @@ class SVGGradientElement;
 class SVGStopElement;
 
 // This class exists mostly so we can hear about gradient stop style changes
-class RenderSVGGradientStop FINAL : public RenderObject {
+class RenderSVGGradientStop final : public RenderObject {
 public:
     explicit RenderSVGGradientStop(SVGStopElement*);
     virtual ~RenderSVGGradientStop();
 
-    virtual const char* renderName() const OVERRIDE { return "RenderSVGGradientStop"; }
-    virtual bool isSVGGradientStop() const OVERRIDE { return true; }
-    virtual bool isSVG() const OVERRIDE { return true; }
+    virtual const char* renderName() const override { return "RenderSVGGradientStop"; }
+    virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVG || type == RenderObjectSVGGradientStop || RenderObject::isOfType(type); }
 
-    virtual void layout() OVERRIDE;
+    virtual void layout() override;
 
     // This overrides are needed to prevent ASSERTs on <svg><stop /></svg>
     // RenderObject's default implementations ASSERT_NOT_REACHED()
     // https://bugs.webkit.org/show_bug.cgi?id=20400
-    virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject*, const PaintInvalidationState* = 0) const OVERRIDE { return LayoutRect(); }
-    virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(); }
-    virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(); }
-    virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return FloatRect(); }
+    virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject*, const PaintInvalidationState* = 0) const override { return LayoutRect(); }
+    virtual FloatRect objectBoundingBox() const override { return FloatRect(); }
+    virtual FloatRect strokeBoundingBox() const override { return FloatRect(); }
+    virtual FloatRect paintInvalidationRectInLocalCoordinates() const override { return FloatRect(); }
 
 protected:
-    virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
+    virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
 
 private:
     SVGGradientElement* gradientElement() const;