Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1128)

Side by Side Diff: Source/core/css/CSSFunctionValue.h

Issue 182063004: Rename adoptRefCountedWillBeRefCountedGarbageCollected to adoptRefWillBeRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSFontValue.h ('k') | Source/core/css/CSSGradientValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 19 matching lines...) Expand all
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class CSSValueList; 33 class CSSValueList;
34 struct CSSParserFunction; 34 struct CSSParserFunction;
35 35
36 class CSSFunctionValue : public CSSValue { 36 class CSSFunctionValue : public CSSValue {
37 public: 37 public:
38 static PassRefPtrWillBeRawPtr<CSSFunctionValue> create(CSSParserFunction* fu nction) 38 static PassRefPtrWillBeRawPtr<CSSFunctionValue> create(CSSParserFunction* fu nction)
39 { 39 {
40 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFunctionVa lue(function)); 40 return adoptRefWillBeRefCountedGarbageCollected(new CSSFunctionValue(fun ction));
41 } 41 }
42 42
43 static PassRefPtrWillBeRawPtr<CSSFunctionValue> create(String name, PassRefP trWillBeRawPtr<CSSValueList> args) 43 static PassRefPtrWillBeRawPtr<CSSFunctionValue> create(String name, PassRefP trWillBeRawPtr<CSSValueList> args)
44 { 44 {
45 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFunctionVa lue(name, args)); 45 return adoptRefWillBeRefCountedGarbageCollected(new CSSFunctionValue(nam e, args));
46 } 46 }
47 47
48 String customCSSText() const; 48 String customCSSText() const;
49 49
50 bool equals(const CSSFunctionValue&) const; 50 bool equals(const CSSFunctionValue&) const;
51 51
52 CSSValueList* arguments() const { return m_args.get(); } 52 CSSValueList* arguments() const { return m_args.get(); }
53 53
54 void traceAfterDispatch(Visitor*); 54 void traceAfterDispatch(Visitor*);
55 55
56 private: 56 private:
57 explicit CSSFunctionValue(CSSParserFunction*); 57 explicit CSSFunctionValue(CSSParserFunction*);
58 CSSFunctionValue(String, PassRefPtrWillBeRawPtr<CSSValueList>); 58 CSSFunctionValue(String, PassRefPtrWillBeRawPtr<CSSValueList>);
59 59
60 String m_name; 60 String m_name;
61 RefPtrWillBeMember<CSSValueList> m_args; 61 RefPtrWillBeMember<CSSValueList> m_args;
62 }; 62 };
63 63
64 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFunctionValue, isFunctionValue()); 64 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFunctionValue, isFunctionValue());
65 65
66 } // namespace WebCore 66 } // namespace WebCore
67 67
68 #endif 68 #endif
69 69
OLDNEW
« no previous file with comments | « Source/core/css/CSSFontValue.h ('k') | Source/core/css/CSSGradientValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698