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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 PassRefPtr<Image> image(const LayoutObject*, const IntSize&) const override; | 73 PassRefPtr<Image> image(const LayoutObject*, const IntSize&) const override; |
74 float imageScaleFactor() const override { return m_imageScaleFactor; } | 74 float imageScaleFactor() const override { return m_imageScaleFactor; } |
75 bool knownToBeOpaque(const LayoutObject*) const override; | 75 bool knownToBeOpaque(const LayoutObject*) const override; |
76 ImageResource* cachedImage() const override; | 76 ImageResource* cachedImage() const override; |
77 | 77 |
78 DECLARE_VIRTUAL_TRACE(); | 78 DECLARE_VIRTUAL_TRACE(); |
79 | 79 |
80 private: | 80 private: |
81 StyleFetchedImageSet(ImageResource*, float imageScaleFactor, CSSImageSetValu
e*); | 81 StyleFetchedImageSet(ImageResource*, float imageScaleFactor, CSSImageSetValu
e*); |
82 | 82 |
| 83 String debugName() const override { return "StyleFetchedImageSet"; } |
| 84 |
83 ResourcePtr<ImageResource> m_bestFitImage; | 85 ResourcePtr<ImageResource> m_bestFitImage; |
84 float m_imageScaleFactor; | 86 float m_imageScaleFactor; |
85 | 87 |
86 RawPtrWillBeMember<CSSImageSetValue> m_imageSetValue; // Not retained; it ow
ns us. | 88 RawPtrWillBeMember<CSSImageSetValue> m_imageSetValue; // Not retained; it ow
ns us. |
87 }; | 89 }; |
88 | 90 |
89 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); | 91 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); |
90 | 92 |
91 } // namespace blink | 93 } // namespace blink |
92 | 94 |
93 #endif // StyleFetchedImageSet_h | 95 #endif // StyleFetchedImageSet_h |
OLD | NEW |