Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Side by Side Diff: Source/core/fetch/ImageResource.h

Issue 1102803002: Remove the pending container size requests list (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove now redundant virtual method Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 void setCustomAcceptHeader(); 123 void setCustomAcceptHeader();
124 void createImage(); 124 void createImage();
125 void updateImage(bool allDataReceived); 125 void updateImage(bool allDataReceived);
126 void clearImage(); 126 void clearImage();
127 // If not null, changeRect is the changed part of the image. 127 // If not null, changeRect is the changed part of the image.
128 void notifyObservers(const IntRect* changeRect = nullptr); 128 void notifyObservers(const IntRect* changeRect = nullptr);
129 IntSize svgImageSizeForLayoutObject(const LayoutObject*) const; 129 IntSize svgImageSizeForLayoutObject(const LayoutObject*) const;
130 blink::Image* svgImageForLayoutObject(const LayoutObject*); 130 blink::Image* svgImageForLayoutObject(const LayoutObject*);
131 131
132 virtual void switchClientsToRevalidatedResource() override;
sof 2015/04/25 18:44:13 If the CL sticks, this method can now be de-virtua
davve 2015/04/25 20:53:24 Good catch! Uploaded as https://codereview.chromiu
133
134 typedef pair<IntSize, float> SizeAndZoom;
135 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques ts;
136 ContainerSizeRequests m_pendingContainerSizeRequests;
137 float m_devicePixelRatioHeaderValue; 132 float m_devicePixelRatioHeaderValue;
138 133
139 typedef HashMap<const ImageResourceClient*, RefPtr<SVGImageForContainer>> Im ageForContainerMap; 134 typedef HashMap<const ImageResourceClient*, RefPtr<SVGImageForContainer>> Im ageForContainerMap;
140 OwnPtr<ImageForContainerMap> m_imageForContainerMap; 135 OwnPtr<ImageForContainerMap> m_imageForContainerMap;
141 136
142 RefPtr<blink::Image> m_image; 137 RefPtr<blink::Image> m_image;
143 bool m_loadingMultipartContent; 138 bool m_loadingMultipartContent;
144 bool m_hasDevicePixelRatioHeaderValue; 139 bool m_hasDevicePixelRatioHeaderValue;
145 }; 140 };
146 141
147 DEFINE_RESOURCE_TYPE_CASTS(Image); 142 DEFINE_RESOURCE_TYPE_CASTS(Image);
148 143
149 } 144 }
150 145
151 #endif 146 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698