| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 client->imageChanged(static_cast<WrappedImagePtr>(this)); | 195 client->imageChanged(static_cast<WrappedImagePtr>(this)); |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 | 198 |
| 199 void CSSCrossfadeValue::CrossfadeSubimageObserverProxy::imageChanged(ImageResour
ce*, const IntRect* rect) | 199 void CSSCrossfadeValue::CrossfadeSubimageObserverProxy::imageChanged(ImageResour
ce*, const IntRect* rect) |
| 200 { | 200 { |
| 201 if (m_ready) | 201 if (m_ready) |
| 202 m_ownerValue->crossfadeChanged(*rect); | 202 m_ownerValue->crossfadeChanged(*rect); |
| 203 } | 203 } |
| 204 | 204 |
| 205 bool CSSCrossfadeValue::hasFailedOrCanceledSubresources() const | |
| 206 { | |
| 207 if (m_cachedFromImage && m_cachedFromImage->loadFailedOrCanceled()) | |
| 208 return true; | |
| 209 if (m_cachedToImage && m_cachedToImage->loadFailedOrCanceled()) | |
| 210 return true; | |
| 211 return false; | |
| 212 } | |
| 213 | |
| 214 bool CSSCrossfadeValue::equals(const CSSCrossfadeValue& other) const | 205 bool CSSCrossfadeValue::equals(const CSSCrossfadeValue& other) const |
| 215 { | 206 { |
| 216 return compareCSSValuePtr(m_fromValue, other.m_fromValue) | 207 return compareCSSValuePtr(m_fromValue, other.m_fromValue) |
| 217 && compareCSSValuePtr(m_toValue, other.m_toValue) | 208 && compareCSSValuePtr(m_toValue, other.m_toValue) |
| 218 && compareCSSValuePtr(m_percentageValue, other.m_percentageValue); | 209 && compareCSSValuePtr(m_percentageValue, other.m_percentageValue); |
| 219 } | 210 } |
| 220 | 211 |
| 221 } // namespace blink | 212 } // namespace blink |
| OLD | NEW |