Changeset 159910 in webkit
- Timestamp:
- Dec 1, 2013 9:41:37 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r159909 r159910 1 2013-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 1 11 2013-12-01 Commit Queue <commit-queue@webkit.org> 2 12 -
trunk/Source/WebCore/css/CSSFunctionValue.h
r157769 r159910 36 36 class CSSFunctionValue : public CSSValue { 37 37 public: 38 static PassRef Ptr<CSSFunctionValue> create(CSSParserFunction* function)38 static PassRef<CSSFunctionValue> create(CSSParserFunction* function) 39 39 { 40 return adoptRef( new CSSFunctionValue(function));40 return adoptRef(*new CSSFunctionValue(function)); 41 41 } 42 42 43 static PassRef Ptr<CSSFunctionValue> create(String name, PassRefPtr<CSSValueList> args)43 static PassRef<CSSFunctionValue> create(String name, PassRefPtr<CSSValueList> args) 44 44 { 45 return adoptRef( new CSSFunctionValue(name, args));45 return adoptRef(*new CSSFunctionValue(name, args)); 46 46 } 47 47
Note: See TracChangeset
for help on using the changeset viewer.