| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 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 10 matching lines...) Expand all Loading... |
| 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef StyleCachedImageSet_h | 26 #ifndef StyleCachedImageSet_h |
| 27 #define StyleCachedImageSet_h | 27 #define StyleCachedImageSet_h |
| 28 | 28 |
| 29 #if ENABLE(CSS_IMAGE_SET) | 29 #if ENABLE(CSS_IMAGE_SET) |
| 30 | 30 |
| 31 #include "CachedImageClient.h" | 31 #include "core/loader/cache/CachedImageClient.h" |
| 32 #include "CachedResourceHandle.h" | 32 #include "core/loader/cache/CachedResourceHandle.h" |
| 33 #include "core/platform/graphics/LayoutSize.h" | 33 #include "core/platform/graphics/LayoutSize.h" |
| 34 #include "core/rendering/style/StyleImage.h" | 34 #include "core/rendering/style/StyleImage.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class CachedImage; | 38 class CachedImage; |
| 39 class CSSImageSetValue; | 39 class CSSImageSetValue; |
| 40 | 40 |
| 41 // This class keeps one cached image and has access to a set of alternatives. | 41 // This class keeps one cached image and has access to a set of alternatives. |
| 42 | 42 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 CachedResourceHandle<CachedImage> m_bestFitImage; | 80 CachedResourceHandle<CachedImage> m_bestFitImage; |
| 81 float m_imageScaleFactor; | 81 float m_imageScaleFactor; |
| 82 CSSImageSetValue* m_imageSetValue; // Not retained; it owns us. | 82 CSSImageSetValue* m_imageSetValue; // Not retained; it owns us. |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace WebCore | 85 } // namespace WebCore |
| 86 | 86 |
| 87 #endif // ENABLE(CSS_IMAGE_SET) | 87 #endif // ENABLE(CSS_IMAGE_SET) |
| 88 | 88 |
| 89 #endif // StyleCachedImageSet_h | 89 #endif // StyleCachedImageSet_h |
| OLD | NEW |