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 18 matching lines...) Expand all Loading... |
29 #include "core/css/CSSValue.h" | 29 #include "core/css/CSSValue.h" |
30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class CSSPrimitiveValue; | 35 class CSSPrimitiveValue; |
36 | 36 |
37 class CSSReflectValue : public CSSValue { | 37 class CSSReflectValue : public CSSValue { |
38 public: | 38 public: |
39 static PassRefPtrWillBeRawPtr<CSSReflectValue> create(PassRefPtr<CSSPrimitiv
eValue> direction, | 39 static PassRefPtrWillBeRawPtr<CSSReflectValue> create(PassRefPtrWillBeRawPtr
<CSSPrimitiveValue> direction, |
40 PassRefPtr<CSSPrimitiveValue> offset, PassRefPtr<CSSValue> mask) | 40 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> offset, PassRefPtr<CSSValue> m
ask) |
41 { | 41 { |
42 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSReflectVal
ue(direction, offset, mask)); | 42 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSReflectVal
ue(direction, offset, mask)); |
43 } | 43 } |
44 | 44 |
45 CSSPrimitiveValue* direction() const { return m_direction.get(); } | 45 CSSPrimitiveValue* direction() const { return m_direction.get(); } |
46 CSSPrimitiveValue* offset() const { return m_offset.get(); } | 46 CSSPrimitiveValue* offset() const { return m_offset.get(); } |
47 CSSValue* mask() const { return m_mask.get(); } | 47 CSSValue* mask() const { return m_mask.get(); } |
48 | 48 |
49 String customCSSText() const; | 49 String customCSSText() const; |
50 String customSerializeResolvingVariables(const HashMap<AtomicString, String>
&) const; | 50 String customSerializeResolvingVariables(const HashMap<AtomicString, String>
&) const; |
51 | 51 |
52 bool equals(const CSSReflectValue&) const; | 52 bool equals(const CSSReflectValue&) const; |
53 | 53 |
54 void traceAfterDispatch(Visitor*); | 54 void traceAfterDispatch(Visitor*); |
55 | 55 |
56 private: | 56 private: |
57 CSSReflectValue(PassRefPtr<CSSPrimitiveValue> direction, PassRefPtr<CSSPrimi
tiveValue> offset, PassRefPtr<CSSValue> mask) | 57 CSSReflectValue(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> direction, PassRef
PtrWillBeRawPtr<CSSPrimitiveValue> offset, PassRefPtr<CSSValue> mask) |
58 : CSSValue(ReflectClass) | 58 : CSSValue(ReflectClass) |
59 , m_direction(direction) | 59 , m_direction(direction) |
60 , m_offset(offset) | 60 , m_offset(offset) |
61 , m_mask(mask) | 61 , m_mask(mask) |
62 { | 62 { |
63 } | 63 } |
64 | 64 |
65 RefPtr<CSSPrimitiveValue> m_direction; | 65 RefPtrWillBeMember<CSSPrimitiveValue> m_direction; |
66 RefPtr<CSSPrimitiveValue> m_offset; | 66 RefPtrWillBeMember<CSSPrimitiveValue> m_offset; |
67 RefPtr<CSSValue> m_mask; | 67 RefPtr<CSSValue> m_mask; |
68 }; | 68 }; |
69 | 69 |
70 DEFINE_CSS_VALUE_TYPE_CASTS(CSSReflectValue, isReflectValue()); | 70 DEFINE_CSS_VALUE_TYPE_CASTS(CSSReflectValue, isReflectValue()); |
71 | 71 |
72 } // namespace WebCore | 72 } // namespace WebCore |
73 | 73 |
74 #endif // CSSReflectValue_h | 74 #endif // CSSReflectValue_h |
OLD | NEW |