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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool shouldPauseAnimation(const blink::Image*) override; | 107 bool shouldPauseAnimation(const blink::Image*) override; |
108 void animationAdvanced(const blink::Image*) override; | 108 void animationAdvanced(const blink::Image*) override; |
109 void changedInRect(const blink::Image*, const IntRect&) override; | 109 void changedInRect(const blink::Image*, const IntRect&) override; |
110 | 110 |
111 protected: | 111 protected: |
112 bool isSafeToUnlock() const override; | 112 bool isSafeToUnlock() const override; |
113 void destroyDecodedDataIfPossible() override; | 113 void destroyDecodedDataIfPossible() override; |
114 void destroyDecodedDataForFailedRevalidation() override; | 114 void destroyDecodedDataForFailedRevalidation() override; |
115 | 115 |
116 private: | 116 private: |
| 117 friend class PaintLayerTest; |
| 118 |
117 class ImageResourceFactory : public ResourceFactory { | 119 class ImageResourceFactory : public ResourceFactory { |
118 public: | 120 public: |
119 ImageResourceFactory() | 121 ImageResourceFactory() |
120 : ResourceFactory(Resource::Image) { } | 122 : ResourceFactory(Resource::Image) { } |
121 | 123 |
122 Resource* create(const ResourceRequest& request, const String&) const ov
erride | 124 Resource* create(const ResourceRequest& request, const String&) const ov
erride |
123 { | 125 { |
124 return new ImageResource(request); | 126 return new ImageResource(request); |
125 } | 127 } |
126 }; | 128 }; |
(...skipping 13 matching lines...) Expand all Loading... |
140 | 142 |
141 RefPtr<blink::Image> m_image; | 143 RefPtr<blink::Image> m_image; |
142 bool m_hasDevicePixelRatioHeaderValue; | 144 bool m_hasDevicePixelRatioHeaderValue; |
143 }; | 145 }; |
144 | 146 |
145 DEFINE_RESOURCE_TYPE_CASTS(Image); | 147 DEFINE_RESOURCE_TYPE_CASTS(Image); |
146 | 148 |
147 } // namespace blink | 149 } // namespace blink |
148 | 150 |
149 #endif | 151 #endif |
OLD | NEW |