| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 bool isFixedSize() const { return true; } | 56 bool isFixedSize() const { return true; } |
| 57 IntSize fixedSize(const RenderObject*); | 57 IntSize fixedSize(const RenderObject*); |
| 58 | 58 |
| 59 bool isPending() const; | 59 bool isPending() const; |
| 60 bool knownToBeOpaque(const RenderObject*) const; | 60 bool knownToBeOpaque(const RenderObject*) const; |
| 61 | 61 |
| 62 void loadSubimages(ResourceFetcher*); | 62 void loadSubimages(ResourceFetcher*); |
| 63 | 63 |
| 64 void setPercentage(PassRefPtr<CSSPrimitiveValue> percentageValue) { m_percen
tageValue = percentageValue; } | 64 void setPercentage(PassRefPtr<CSSPrimitiveValue> percentageValue) { m_percen
tageValue = percentageValue; } |
| 65 | 65 |
| 66 bool hasFailedOrCanceledSubresources() const; | |
| 67 | |
| 68 bool equals(const CSSCrossfadeValue&) const; | 66 bool equals(const CSSCrossfadeValue&) const; |
| 69 | 67 |
| 70 private: | 68 private: |
| 71 CSSCrossfadeValue(PassRefPtr<CSSValue> fromValue, PassRefPtr<CSSValue> toVal
ue) | 69 CSSCrossfadeValue(PassRefPtr<CSSValue> fromValue, PassRefPtr<CSSValue> toVal
ue) |
| 72 : CSSImageGeneratorValue(CrossfadeClass) | 70 : CSSImageGeneratorValue(CrossfadeClass) |
| 73 , m_fromValue(fromValue) | 71 , m_fromValue(fromValue) |
| 74 , m_toValue(toValue) | 72 , m_toValue(toValue) |
| 75 , m_cachedFromImage(0) | 73 , m_cachedFromImage(0) |
| 76 , m_cachedToImage(0) | 74 , m_cachedToImage(0) |
| 77 , m_crossfadeSubimageObserver(this) { } | 75 , m_crossfadeSubimageObserver(this) { } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 102 RefPtr<Image> m_generatedImage; | 100 RefPtr<Image> m_generatedImage; |
| 103 | 101 |
| 104 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; | 102 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; |
| 105 }; | 103 }; |
| 106 | 104 |
| 107 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); | 105 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); |
| 108 | 106 |
| 109 } // namespace blink | 107 } // namespace blink |
| 110 | 108 |
| 111 #endif // SKY_ENGINE_CORE_CSS_CSSCROSSFADEVALUE_H_ | 109 #endif // SKY_ENGINE_CORE_CSS_CSSCROSSFADEVALUE_H_ |
| OLD | NEW |