| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| 98 | 98 |
| 99 void imageChanged(ImageResource*, const IntRect* = nullptr) override; | 99 void imageChanged(ImageResource*, const IntRect* = nullptr) override; |
| 100 String debugName() const override { return "CrossfadeSubimageObserverPro
xy"; } |
| 100 void setReady(bool ready) { m_ready = ready; } | 101 void setReady(bool ready) { m_ready = ready; } |
| 101 private: | 102 private: |
| 102 RawPtrWillBeMember<CSSCrossfadeValue> m_ownerValue; | 103 RawPtrWillBeMember<CSSCrossfadeValue> m_ownerValue; |
| 103 bool m_ready; | 104 bool m_ready; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 void crossfadeChanged(const IntRect&); | 107 void crossfadeChanged(const IntRect&); |
| 107 | 108 |
| 108 RefPtrWillBeMember<CSSValue> m_fromValue; | 109 RefPtrWillBeMember<CSSValue> m_fromValue; |
| 109 RefPtrWillBeMember<CSSValue> m_toValue; | 110 RefPtrWillBeMember<CSSValue> m_toValue; |
| 110 RefPtrWillBeMember<CSSPrimitiveValue> m_percentageValue; | 111 RefPtrWillBeMember<CSSPrimitiveValue> m_percentageValue; |
| 111 | 112 |
| 112 ResourcePtr<ImageResource> m_cachedFromImage; | 113 ResourcePtr<ImageResource> m_cachedFromImage; |
| 113 ResourcePtr<ImageResource> m_cachedToImage; | 114 ResourcePtr<ImageResource> m_cachedToImage; |
| 114 | 115 |
| 115 RefPtr<Image> m_generatedImage; | 116 RefPtr<Image> m_generatedImage; |
| 116 | 117 |
| 117 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; | 118 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); | 121 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); |
| 121 | 122 |
| 122 } // namespace blink | 123 } // namespace blink |
| 123 | 124 |
| 124 #endif // CSSCrossfadeValue_h | 125 #endif // CSSCrossfadeValue_h |
| OLD | NEW |