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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLImageElement.h

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 unsigned height(); 70 unsigned height();
71 71
72 unsigned naturalWidth() const; 72 unsigned naturalWidth() const;
73 unsigned naturalHeight() const; 73 unsigned naturalHeight() const;
74 const String& currentSrc() const; 74 const String& currentSrc() const;
75 75
76 bool isServerMap() const; 76 bool isServerMap() const;
77 77
78 String altText() const final; 78 String altText() const final;
79 79
80 ImageResource* cachedImage() const { return imageLoader().image(); } 80 ImageResourceContent* cachedImage() const { return imageLoader().image(); }
81 void setImageResource(ImageResource* i) { imageLoader().setImage(i); } 81 ImageResource* cachedImageResourceForImageDocument() const {
82 return imageLoader().imageResourceForImageDocument();
83 }
84 void setImageResource(ImageResourceContent* i) { imageLoader().setImage(i); }
82 85
83 void setLoadingImageDocument() { imageLoader().setLoadingImageDocument(); } 86 void setLoadingImageDocument() { imageLoader().setLoadingImageDocument(); }
84 87
85 void setHeight(unsigned); 88 void setHeight(unsigned);
86 89
87 KURL src() const; 90 KURL src() const;
88 void setSrc(const String&); 91 void setSrc(const String&);
89 92
90 void setWidth(unsigned); 93 void setWidth(unsigned);
91 94
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 unsigned m_elementCreatedByParser : 1; 205 unsigned m_elementCreatedByParser : 1;
203 unsigned m_useFallbackContent : 1; 206 unsigned m_useFallbackContent : 1;
204 unsigned m_isFallbackImage : 1; 207 unsigned m_isFallbackImage : 1;
205 208
206 ReferrerPolicy m_referrerPolicy; 209 ReferrerPolicy m_referrerPolicy;
207 }; 210 };
208 211
209 } // namespace blink 212 } // namespace blink
210 213
211 #endif // HTMLImageElement_h 214 #endif // HTMLImageElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698