Make remaining CSSValue constructors return PassRef.
[WebKit-https.git] / Source / WebCore / css / CSSGridTemplateValue.h
index e68c202..efae01c 100644 (file)
@@ -39,7 +39,11 @@ namespace WebCore {
 
 class CSSGridTemplateValue : public CSSValue {
 public:
-    static PassRefPtr<CSSGridTemplateValue> create(const NamedGridAreaMap& gridAreaMap, size_t rowCount, size_t columnCount) { return adoptRef(new CSSGridTemplateValue(gridAreaMap, rowCount, columnCount)); }
+    static PassRef<CSSGridTemplateValue> create(const NamedGridAreaMap& gridAreaMap, size_t rowCount, size_t columnCount)
+    {
+        return adoptRef(*new CSSGridTemplateValue(gridAreaMap, rowCount, columnCount));
+    }
+
     ~CSSGridTemplateValue() { }
 
     String customCSSText() const;