Commit 856821d7 authored by akling@apple.com's avatar akling@apple.com
Browse files

CSSFunctionValue constructors should return PassRef.

<https://webkit.org/b/125054>

Make CSSFunctionValue::create() helpers return PassRef instead of
PassRefPtr since they will never return null.

Reviewed by Anders Carlsson.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 08c7ee2b
2013-12-01 Andreas Kling <akling@apple.com>
CSSFunctionValue constructors should return PassRef.
<https://webkit.org/b/125054>
Make CSSFunctionValue::create() helpers return PassRef instead of
PassRefPtr since they will never return null.
Reviewed by Anders Carlsson.
2013-12-01 Commit Queue <commit-queue@webkit.org>
 
Unreviewed, rolling out r159764.
......@@ -35,14 +35,14 @@ struct CSSParserFunction;
class CSSFunctionValue : public CSSValue {
public:
static PassRefPtr<CSSFunctionValue> create(CSSParserFunction* function)
static PassRef<CSSFunctionValue> create(CSSParserFunction* function)
{
return adoptRef(new CSSFunctionValue(function));
return adoptRef(*new CSSFunctionValue(function));
}
static PassRefPtr<CSSFunctionValue> create(String name, PassRefPtr<CSSValueList> args)
static PassRef<CSSFunctionValue> create(String name, PassRefPtr<CSSValueList> args)
{
return adoptRef(new CSSFunctionValue(name, args));
return adoptRef(*new CSSFunctionValue(name, args));
}
String customCSSText() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment