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

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

Issue 1154413002: Make multipart image documents work again. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix excessive clumsiness Created 5 years, 6 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 | Annotate | Revision Log
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void clear(); 121 void clear();
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 bool loadingMultipartContent() const;
131 132
132 float m_devicePixelRatioHeaderValue; 133 float m_devicePixelRatioHeaderValue;
133 134
134 typedef HashMap<const ImageResourceClient*, RefPtr<SVGImageForContainer>> Im ageForContainerMap; 135 typedef HashMap<const ImageResourceClient*, RefPtr<SVGImageForContainer>> Im ageForContainerMap;
135 OwnPtr<ImageForContainerMap> m_imageForContainerMap; 136 OwnPtr<ImageForContainerMap> m_imageForContainerMap;
136 137
137 RefPtr<blink::Image> m_image; 138 RefPtr<blink::Image> m_image;
138 bool m_loadingMultipartContent;
139 bool m_hasDevicePixelRatioHeaderValue; 139 bool m_hasDevicePixelRatioHeaderValue;
140 }; 140 };
141 141
142 DEFINE_RESOURCE_TYPE_CASTS(Image); 142 DEFINE_RESOURCE_TYPE_CASTS(Image);
143 143
144 } 144 }
145 145
146 #endif 146 #endif
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/multipart/multipart-main-resource-expected.html ('k') | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698