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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 LayoutSize ImageSize(const LayoutObject&, | 55 LayoutSize ImageSize(const LayoutObject&, |
56 float multiplier, | 56 float multiplier, |
57 const LayoutSize& default_object_size) const override; | 57 const LayoutSize& default_object_size) const override; |
58 bool ImageHasRelativeSize() const override; | 58 bool ImageHasRelativeSize() const override; |
59 bool UsesImageContainerSize() const override; | 59 bool UsesImageContainerSize() const override; |
60 void AddClient(LayoutObject*) override; | 60 void AddClient(LayoutObject*) override; |
61 void RemoveClient(LayoutObject*) override; | 61 void RemoveClient(LayoutObject*) override; |
62 void ImageNotifyFinished(ImageResourceContent*) override; | 62 void ImageNotifyFinished(ImageResourceContent*) override; |
63 String DebugName() const override { return "StyleFetchedImage"; } | 63 String DebugName() const override { return "StyleFetchedImage"; } |
64 PassRefPtr<Image> GetImage(const LayoutObject&, | 64 PassRefPtr<Image> GetImage(const LayoutObject&, |
65 const IntSize&, | 65 const IntSize&) const override; |
66 float zoom) const override; | |
67 bool KnownToBeOpaque(const LayoutObject&) const override; | 66 bool KnownToBeOpaque(const LayoutObject&) const override; |
68 ImageResourceContent* CachedImage() const override; | 67 ImageResourceContent* CachedImage() const override; |
69 | 68 |
70 DECLARE_VIRTUAL_TRACE(); | 69 DECLARE_VIRTUAL_TRACE(); |
71 | 70 |
72 private: | 71 private: |
73 StyleFetchedImage(ImageResourceContent*, const Document&, const KURL&); | 72 StyleFetchedImage(ImageResourceContent*, const Document&, const KURL&); |
74 | 73 |
75 void Dispose(); | 74 void Dispose(); |
76 | 75 |
77 Member<ImageResourceContent> image_; | 76 Member<ImageResourceContent> image_; |
78 Member<const Document> document_; | 77 Member<const Document> document_; |
79 const KURL url_; | 78 const KURL url_; |
80 }; | 79 }; |
81 | 80 |
82 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, IsImageResource()); | 81 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, IsImageResource()); |
83 | 82 |
84 } // namespace blink | 83 } // namespace blink |
85 #endif | 84 #endif |
OLD | NEW |