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 11 matching lines...) Expand all Loading... |
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 StyleFetchedImageSet_h | 26 #ifndef StyleFetchedImageSet_h |
27 #define StyleFetchedImageSet_h | 27 #define StyleFetchedImageSet_h |
28 | 28 |
29 #include "core/fetch/ResourceClient.h" | 29 #include "core/fetch/ResourceClient.h" |
30 #include "core/style/StyleImage.h" | 30 #include "core/style/StyleImage.h" |
31 #include "platform/geometry/LayoutSize.h" | 31 #include "platform/geometry/LayoutSize.h" |
| 32 #include "platform/weborigin/KURL.h" |
32 | 33 |
33 namespace blink { | 34 namespace blink { |
34 | 35 |
35 class ImageResource; | 36 class ImageResource; |
36 class CSSImageSetValue; | 37 class CSSImageSetValue; |
37 | 38 |
38 // This class keeps one cached image and has access to a set of alternatives. | 39 // This class keeps one cached image and has access to a set of alternatives. |
39 | 40 |
40 class StyleFetchedImageSet final : public StyleImage, private ResourceClient { | 41 class StyleFetchedImageSet final : public StyleImage, private ResourceClient { |
41 USING_PRE_FINALIZER(StyleFetchedImageSet, dispose); | 42 USING_PRE_FINALIZER(StyleFetchedImageSet, dispose); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 Member<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us. | 84 Member<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us. |
84 const KURL m_url; | 85 const KURL m_url; |
85 }; | 86 }; |
86 | 87 |
87 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); | 88 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); |
88 | 89 |
89 } // namespace blink | 90 } // namespace blink |
90 | 91 |
91 #endif // StyleFetchedImageSet_h | 92 #endif // StyleFetchedImageSet_h |
OLD | NEW |