| 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 |
| 133 class ImageResourceFactory : public ResourceFactory { | 135 class ImageResourceFactory : public ResourceFactory { |
| 134 public: | 136 public: |
| 135 ImageResourceFactory() | 137 ImageResourceFactory() |
| 136 : ResourceFactory(Resource::Image) { } | 138 : ResourceFactory(Resource::Image) { } |
| 137 | 139 |
| 138 PassRefPtrWillBeRawPtr<Resource> create(const ResourceRequest& request,
const String&) const override | 140 PassRefPtrWillBeRawPtr<Resource> create(const ResourceRequest& request,
const String&) const override |
| 139 { | 141 { |
| 140 return adoptRefWillBeNoop(new ImageResource(request)); | 142 return adoptRefWillBeNoop(new ImageResource(request)); |
| 141 } | 143 } |
| 142 }; | 144 }; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 156 | 158 |
| 157 RefPtr<blink::Image> m_image; | 159 RefPtr<blink::Image> m_image; |
| 158 bool m_hasDevicePixelRatioHeaderValue; | 160 bool m_hasDevicePixelRatioHeaderValue; |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 DEFINE_RESOURCE_TYPE_CASTS(Image); | 163 DEFINE_RESOURCE_TYPE_CASTS(Image); |
| 162 | 164 |
| 163 } // namespace blink | 165 } // namespace blink |
| 164 | 166 |
| 165 #endif | 167 #endif |
| OLD | NEW |