Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGColor.h
index 5e5f9a8..ea5bd57 100644 (file)
@@ -41,25 +41,25 @@ public:
         SVG_COLORTYPE_CURRENTCOLOR = 3
     };
 
-    static PassRefPtr<SVGColor> createFromString(const String& rgbColor)
+    static PassRefPtrWillBeRawPtr<SVGColor> createFromString(const String& rgbColor)
     {
-        RefPtr<SVGColor> color = adoptRef(new SVGColor(SVG_COLORTYPE_RGBCOLOR));
+        RefPtrWillBeRawPtr<SVGColor> color = adoptRefCountedWillBeRefCountedGarbageCollected(new SVGColor(SVG_COLORTYPE_RGBCOLOR));
         StyleColor styleColor = colorFromRGBColorString(rgbColor);
         ASSERT(!styleColor.isCurrentColor());
         color->setColor(styleColor.color());
         return color.release();
     }
 
-    static PassRefPtr<SVGColor> createFromColor(const Color& rgbColor)
+    static PassRefPtrWillBeRawPtr<SVGColor> createFromColor(const Color& rgbColor)
     {
-        RefPtr<SVGColor> color = adoptRef(new SVGColor(SVG_COLORTYPE_RGBCOLOR));
+        RefPtrWillBeRawPtr<SVGColor> color = adoptRefCountedWillBeRefCountedGarbageCollected(new SVGColor(SVG_COLORTYPE_RGBCOLOR));
         color->setColor(rgbColor);
         return color.release();
     }
 
-    static PassRefPtr<SVGColor> createCurrentColor()
+    static PassRefPtrWillBeRawPtr<SVGColor> createCurrentColor()
     {
-        return adoptRef(new SVGColor(SVG_COLORTYPE_CURRENTCOLOR));
+        return adoptRefCountedWillBeRefCountedGarbageCollected(new SVGColor(SVG_COLORTYPE_CURRENTCOLOR));
     }
 
     const Color& color() const { return m_color; }
@@ -76,10 +76,12 @@ public:
 
     ~SVGColor() { }
 
-    PassRefPtr<SVGColor> cloneForCSSOM() const;
+    PassRefPtrWillBeRawPtr<SVGColor> cloneForCSSOM() const;
 
     bool equals(const SVGColor&) const;
 
+    void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(visitor); }
+
 protected:
     friend class CSSComputedStyleDeclaration;