Changeset 159910 in webkit


Ignore:
Timestamp:
Dec 1, 2013 9:41:37 PM (10 years ago)
Author:
akling@apple.com
Message:

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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r159909 r159910  
     12013-12-01  Andreas Kling  <akling@apple.com>
     2
     3        CSSFunctionValue constructors should return PassRef.
     4        <https://webkit.org/b/125054>
     5
     6        Make CSSFunctionValue::create() helpers return PassRef instead of
     7        PassRefPtr since they will never return null.
     8
     9        Reviewed by Anders Carlsson.
     10
    1112013-12-01  Commit Queue  <commit-queue@webkit.org>
    212
  • trunk/Source/WebCore/css/CSSFunctionValue.h

    r157769 r159910  
    3636class CSSFunctionValue : public CSSValue {
    3737public:
    38     static PassRefPtr<CSSFunctionValue> create(CSSParserFunction* function)
     38    static PassRef<CSSFunctionValue> create(CSSParserFunction* function)
    3939    {
    40         return adoptRef(new CSSFunctionValue(function));
     40        return adoptRef(*new CSSFunctionValue(function));
    4141    }
    4242
    43     static PassRefPtr<CSSFunctionValue> create(String name, PassRefPtr<CSSValueList> args)
     43    static PassRef<CSSFunctionValue> create(String name, PassRefPtr<CSSValueList> args)
    4444    {
    45         return adoptRef(new CSSFunctionValue(name, args));
     45        return adoptRef(*new CSSFunctionValue(name, args));
    4646    }
    4747
Note: See TracChangeset for help on using the changeset viewer.