| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |