| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 float imageScaleFactor, | 47 float imageScaleFactor, |
| 48 CSSImageSetValue* value, | 48 CSSImageSetValue* value, |
| 49 const KURL& url) { | 49 const KURL& url) { |
| 50 return new StyleFetchedImageSet(image, imageScaleFactor, value, url); | 50 return new StyleFetchedImageSet(image, imageScaleFactor, value, url); |
| 51 } | 51 } |
| 52 ~StyleFetchedImageSet() override; | 52 ~StyleFetchedImageSet() override; |
| 53 | 53 |
| 54 CSSValue* cssValue() const override; | 54 CSSValue* cssValue() const override; |
| 55 CSSValue* computedCSSValue() const override; | 55 CSSValue* computedCSSValue() const override; |
| 56 | 56 |
| 57 // FIXME: This is used by StyleImage for equals comparison, but this implement
ation | 57 // FIXME: This is used by StyleImage for equals comparison, but this |
| 58 // only looks at the image from the set that we have loaded. I'm not sure if t
hat is | 58 // implementation only looks at the image from the set that we have loaded. |
| 59 // meaningful enough or not. | 59 // I'm not sure if that is meaningful enough or not. |
| 60 WrappedImagePtr data() const override; | 60 WrappedImagePtr data() const override; |
| 61 | 61 |
| 62 bool canRender() const override; | 62 bool canRender() const override; |
| 63 bool isLoaded() const override; | 63 bool isLoaded() const override; |
| 64 bool errorOccurred() const override; | 64 bool errorOccurred() const override; |
| 65 LayoutSize imageSize(const LayoutObject&, | 65 LayoutSize imageSize(const LayoutObject&, |
| 66 float multiplier, | 66 float multiplier, |
| 67 const LayoutSize& defaultObjectSize) const override; | 67 const LayoutSize& defaultObjectSize) const override; |
| 68 bool imageHasRelativeSize() const override; | 68 bool imageHasRelativeSize() const override; |
| 69 bool usesImageContainerSize() const override; | 69 bool usesImageContainerSize() const override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 93 | 93 |
| 94 Member<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us. | 94 Member<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us. |
| 95 const KURL m_url; | 95 const KURL m_url; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); | 98 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // StyleFetchedImageSet_h | 102 #endif // StyleFetchedImageSet_h |
| OLD | NEW |