OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool isLoaded() const override; | 54 bool isLoaded() const override; |
55 bool errorOccurred() const override; | 55 bool errorOccurred() const override; |
56 LayoutSize imageSize(const LayoutObject&, | 56 LayoutSize imageSize(const LayoutObject&, |
57 float multiplier, | 57 float multiplier, |
58 const LayoutSize& defaultObjectSize) const override; | 58 const LayoutSize& defaultObjectSize) const override; |
59 bool imageHasRelativeSize() const override; | 59 bool imageHasRelativeSize() const override; |
60 bool usesImageContainerSize() const override; | 60 bool usesImageContainerSize() const override; |
61 void addClient(LayoutObject*) override; | 61 void addClient(LayoutObject*) override; |
62 void removeClient(LayoutObject*) override; | 62 void removeClient(LayoutObject*) override; |
63 void notifyFinished(Resource*) override; | 63 void notifyFinished(Resource*) override; |
| 64 bool isReloadable() const override { return false; } |
64 String debugName() const override { return "StyleFetchedImage"; } | 65 String debugName() const override { return "StyleFetchedImage"; } |
65 PassRefPtr<Image> image(const LayoutObject&, | 66 PassRefPtr<Image> image(const LayoutObject&, |
66 const IntSize&, | 67 const IntSize&, |
67 float zoom) const override; | 68 float zoom) const override; |
68 bool knownToBeOpaque(const LayoutObject&) const override; | 69 bool knownToBeOpaque(const LayoutObject&) const override; |
69 ImageResource* cachedImage() const override; | 70 ImageResource* cachedImage() const override; |
70 | 71 |
71 DECLARE_VIRTUAL_TRACE(); | 72 DECLARE_VIRTUAL_TRACE(); |
72 | 73 |
73 private: | 74 private: |
74 StyleFetchedImage(ImageResource*, const Document&, const KURL&); | 75 StyleFetchedImage(ImageResource*, const Document&, const KURL&); |
75 | 76 |
76 void dispose(); | 77 void dispose(); |
77 | 78 |
78 Member<ImageResource> m_image; | 79 Member<ImageResource> m_image; |
79 Member<const Document> m_document; | 80 Member<const Document> m_document; |
80 const KURL m_url; | 81 const KURL m_url; |
81 }; | 82 }; |
82 | 83 |
83 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, isImageResource()); | 84 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, isImageResource()); |
84 | 85 |
85 } // namespace blink | 86 } // namespace blink |
86 #endif | 87 #endif |
OLD | NEW |