| OLD | NEW |
| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 unsigned height(); | 68 unsigned height(); |
| 69 | 69 |
| 70 unsigned naturalWidth() const; | 70 unsigned naturalWidth() const; |
| 71 unsigned naturalHeight() const; | 71 unsigned naturalHeight() const; |
| 72 const String& currentSrc() const; | 72 const String& currentSrc() const; |
| 73 | 73 |
| 74 bool isServerMap() const; | 74 bool isServerMap() const; |
| 75 | 75 |
| 76 String altText() const final; | 76 String altText() const final; |
| 77 | 77 |
| 78 ImageResource* cachedImage() const { return imageLoader().image(); } | 78 ImageResourceContent* cachedImage() const { return imageLoader().image(); } |
| 79 void setImageResource(ImageResource* i) { imageLoader().setImage(i); } | 79 ImageResource* cachedImageResourceForImageDocument() const { |
| 80 return imageLoader().imageResourceForImageDocument(); |
| 81 } |
| 82 void setImageResource(ImageResourceContent* i) { imageLoader().setImage(i); } |
| 80 | 83 |
| 81 void setLoadingImageDocument() { imageLoader().setLoadingImageDocument(); } | 84 void setLoadingImageDocument() { imageLoader().setLoadingImageDocument(); } |
| 82 | 85 |
| 83 void setHeight(unsigned); | 86 void setHeight(unsigned); |
| 84 | 87 |
| 85 KURL src() const; | 88 KURL src() const; |
| 86 void setSrc(const String&); | 89 void setSrc(const String&); |
| 87 | 90 |
| 88 void setWidth(unsigned); | 91 void setWidth(unsigned); |
| 89 | 92 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 unsigned m_elementCreatedByParser : 1; | 200 unsigned m_elementCreatedByParser : 1; |
| 198 unsigned m_useFallbackContent : 1; | 201 unsigned m_useFallbackContent : 1; |
| 199 unsigned m_isFallbackImage : 1; | 202 unsigned m_isFallbackImage : 1; |
| 200 | 203 |
| 201 ReferrerPolicy m_referrerPolicy; | 204 ReferrerPolicy m_referrerPolicy; |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 } // namespace blink | 207 } // namespace blink |
| 205 | 208 |
| 206 #endif // HTMLImageElement_h | 209 #endif // HTMLImageElement_h |
| OLD | NEW |