| 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 15 matching lines...) Expand all  Loading... | 
| 26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" | 
| 27 #include "core/fetch/ResourcePtr.h" | 27 #include "core/fetch/ResourcePtr.h" | 
| 28 #include "platform/geometry/IntRect.h" | 28 #include "platform/geometry/IntRect.h" | 
| 29 #include "platform/geometry/IntSizeHash.h" | 29 #include "platform/geometry/IntSizeHash.h" | 
| 30 #include "platform/geometry/LayoutSize.h" | 30 #include "platform/geometry/LayoutSize.h" | 
| 31 #include "platform/graphics/ImageObserver.h" | 31 #include "platform/graphics/ImageObserver.h" | 
| 32 #include "wtf/HashMap.h" | 32 #include "wtf/HashMap.h" | 
| 33 | 33 | 
| 34 namespace blink { | 34 namespace blink { | 
| 35 | 35 | 
|  | 36 class ColorSpaceProfile; | 
| 36 class ImageResourceClient; | 37 class ImageResourceClient; | 
| 37 class FetchRequest; | 38 class FetchRequest; | 
| 38 class ResourceFetcher; | 39 class ResourceFetcher; | 
| 39 class FloatSize; | 40 class FloatSize; | 
| 40 class Length; | 41 class Length; | 
| 41 class MemoryCache; | 42 class MemoryCache; | 
| 42 class LayoutObject; | 43 class LayoutObject; | 
| 43 class SecurityOrigin; | 44 class SecurityOrigin; | 
| 44 | 45 | 
| 45 class CORE_EXPORT ImageResource final : public Resource, public ImageObserver { | 46 class CORE_EXPORT ImageResource final : public Resource, public ImageObserver { | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 98     void finishOnePart() override; | 99     void finishOnePart() override; | 
| 99 | 100 | 
| 100     // For compatibility, images keep loading even if there are HTTP errors. | 101     // For compatibility, images keep loading even if there are HTTP errors. | 
| 101     bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } | 102     bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } | 
| 102 | 103 | 
| 103     bool isImage() const override { return true; } | 104     bool isImage() const override { return true; } | 
| 104     bool stillNeedsLoad() const override { return !errorOccurred() && status() =
     = Unknown && !isLoading(); } | 105     bool stillNeedsLoad() const override { return !errorOccurred() && status() =
     = Unknown && !isLoading(); } | 
| 105 | 106 | 
| 106     // ImageObserver | 107     // ImageObserver | 
| 107     void decodedSizeChanged(const blink::Image*, int delta) override; | 108     void decodedSizeChanged(const blink::Image*, int delta) override; | 
|  | 109     void deviceProfileChanged(const blink::Image*, ColorSpaceProfile*) override; | 
| 108     void didDraw(const blink::Image*) override; | 110     void didDraw(const blink::Image*) override; | 
| 109 | 111 | 
| 110     bool shouldPauseAnimation(const blink::Image*) override; | 112     bool shouldPauseAnimation(const blink::Image*) override; | 
| 111     void animationAdvanced(const blink::Image*) override; | 113     void animationAdvanced(const blink::Image*) override; | 
| 112     void changedInRect(const blink::Image*, const IntRect&) override; | 114     void changedInRect(const blink::Image*, const IntRect&) override; | 
| 113 | 115 | 
| 114 protected: | 116 protected: | 
| 115     bool isSafeToUnlock() const override; | 117     bool isSafeToUnlock() const override; | 
| 116     void destroyDecodedDataIfPossible() override; | 118     void destroyDecodedDataIfPossible() override; | 
| 117     void destroyDecodedDataForFailedRevalidation() override; | 119     void destroyDecodedDataForFailedRevalidation() override; | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 143 | 145 | 
| 144     RefPtr<blink::Image> m_image; | 146     RefPtr<blink::Image> m_image; | 
| 145     bool m_hasDevicePixelRatioHeaderValue; | 147     bool m_hasDevicePixelRatioHeaderValue; | 
| 146 }; | 148 }; | 
| 147 | 149 | 
| 148 DEFINE_RESOURCE_TYPE_CASTS(Image); | 150 DEFINE_RESOURCE_TYPE_CASTS(Image); | 
| 149 | 151 | 
| 150 } | 152 } | 
| 151 | 153 | 
| 152 #endif | 154 #endif | 
| OLD | NEW | 
|---|