OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 protected: | 124 protected: |
125 bool isSafeToUnlock() const override; | 125 bool isSafeToUnlock() const override; |
126 void destroyDecodedDataIfPossible() override; | 126 void destroyDecodedDataIfPossible() override; |
127 void destroyDecodedDataForFailedRevalidation() override; | 127 void destroyDecodedDataForFailedRevalidation() override; |
128 | 128 |
129 private: | 129 private: |
130 explicit ImageResource(blink::Image*); | 130 explicit ImageResource(blink::Image*); |
131 ImageResource(const ResourceRequest&, blink::Image*); | 131 ImageResource(const ResourceRequest&, blink::Image*); |
132 | 132 |
133 friend class PaintLayerTest; | |
134 | |
135 class ImageResourceFactory : public ResourceFactory { | 133 class ImageResourceFactory : public ResourceFactory { |
136 public: | 134 public: |
137 ImageResourceFactory() | 135 ImageResourceFactory() |
138 : ResourceFactory(Resource::Image) { } | 136 : ResourceFactory(Resource::Image) { } |
139 | 137 |
140 PassRefPtrWillBeRawPtr<Resource> create(const ResourceRequest& request,
const String&) const override | 138 PassRefPtrWillBeRawPtr<Resource> create(const ResourceRequest& request,
const String&) const override |
141 { | 139 { |
142 return adoptRefWillBeNoop(new ImageResource(request)); | 140 return adoptRefWillBeNoop(new ImageResource(request)); |
143 } | 141 } |
144 }; | 142 }; |
(...skipping 13 matching lines...) Expand all Loading... |
158 | 156 |
159 RefPtr<blink::Image> m_image; | 157 RefPtr<blink::Image> m_image; |
160 bool m_hasDevicePixelRatioHeaderValue; | 158 bool m_hasDevicePixelRatioHeaderValue; |
161 }; | 159 }; |
162 | 160 |
163 DEFINE_RESOURCE_TYPE_CASTS(Image); | 161 DEFINE_RESOURCE_TYPE_CASTS(Image); |
164 | 162 |
165 } // namespace blink | 163 } // namespace blink |
166 | 164 |
167 #endif | 165 #endif |
OLD | NEW |