OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 CSSCrossfadeValue(PassRefPtrWillBeRawPtr<CSSValue> fromValue, PassRefPtrWill
BeRawPtr<CSSValue> toValue, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> percentage
Value) | 77 CSSCrossfadeValue(PassRefPtrWillBeRawPtr<CSSValue> fromValue, PassRefPtrWill
BeRawPtr<CSSValue> toValue, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> percentage
Value) |
78 : CSSImageGeneratorValue(CrossfadeClass) | 78 : CSSImageGeneratorValue(CrossfadeClass) |
79 , m_fromValue(fromValue) | 79 , m_fromValue(fromValue) |
80 , m_toValue(toValue) | 80 , m_toValue(toValue) |
81 , m_percentageValue(percentageValue) | 81 , m_percentageValue(percentageValue) |
82 , m_cachedFromImage(nullptr) | 82 , m_cachedFromImage(nullptr) |
83 , m_cachedToImage(nullptr) | 83 , m_cachedToImage(nullptr) |
84 , m_crossfadeSubimageObserver(this) { } | 84 , m_crossfadeSubimageObserver(this) { } |
85 | 85 |
86 class CrossfadeSubimageObserverProxy final : public ImageResourceClient { | 86 class CrossfadeSubimageObserverProxy final : public ImageResourceClient { |
87 DISALLOW_ALLOCATION(); | 87 DISALLOW_NEW(); |
88 public: | 88 public: |
89 explicit CrossfadeSubimageObserverProxy(CSSCrossfadeValue* ownerValue) | 89 explicit CrossfadeSubimageObserverProxy(CSSCrossfadeValue* ownerValue) |
90 : m_ownerValue(ownerValue) | 90 : m_ownerValue(ownerValue) |
91 , m_ready(false) { } | 91 , m_ready(false) { } |
92 | 92 |
93 ~CrossfadeSubimageObserverProxy() override { } | 93 ~CrossfadeSubimageObserverProxy() override { } |
94 DEFINE_INLINE_TRACE() | 94 DEFINE_INLINE_TRACE() |
95 { | 95 { |
96 visitor->trace(m_ownerValue); | 96 visitor->trace(m_ownerValue); |
97 } | 97 } |
(...skipping 17 matching lines...) Expand all Loading... |
115 RefPtr<Image> m_generatedImage; | 115 RefPtr<Image> m_generatedImage; |
116 | 116 |
117 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; | 117 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; |
118 }; | 118 }; |
119 | 119 |
120 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); | 120 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
123 | 123 |
124 #endif // CSSCrossfadeValue_h | 124 #endif // CSSCrossfadeValue_h |
OLD | NEW |