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

Side by Side Diff: third_party/WebKit/Source/core/loader/ImageLoader.h

Issue 2371643002: HTMLImageElement: do not use fallback content for ImageDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2840
Patch Set: Created 4 years, 2 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 | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | no next file » | 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) 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, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 Element* element() const { return m_element; } 79 Element* element() const { return m_element; }
80 bool imageComplete() const 80 bool imageComplete() const
81 { 81 {
82 return m_imageComplete && !m_pendingTask; 82 return m_imageComplete && !m_pendingTask;
83 } 83 }
84 84
85 ImageResource* image() const { return m_image.get(); } 85 ImageResource* image() const { return m_image.get(); }
86 void setImage(ImageResource*); // Cancels pending load events, and doesn't d ispatch new ones. 86 void setImage(ImageResource*); // Cancels pending load events, and doesn't d ispatch new ones.
87 87
88 bool isLoadingImageDocument() { return m_loadingImageDocument; }
88 void setLoadingImageDocument() { m_loadingImageDocument = true; } 89 void setLoadingImageDocument() { m_loadingImageDocument = true; }
89 90
90 bool hasPendingActivity() const 91 bool hasPendingActivity() const
91 { 92 {
92 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask; 93 return m_hasPendingLoadEvent || m_hasPendingErrorEvent || m_pendingTask;
93 } 94 }
94 95
95 bool hasPendingError() const 96 bool hasPendingError() const
96 { 97 {
97 return m_hasPendingErrorEvent; 98 return m_hasPendingErrorEvent;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 bool m_hasPendingErrorEvent : 1; 165 bool m_hasPendingErrorEvent : 1;
165 bool m_imageComplete : 1; 166 bool m_imageComplete : 1;
166 bool m_loadingImageDocument : 1; 167 bool m_loadingImageDocument : 1;
167 bool m_elementIsProtected : 1; 168 bool m_elementIsProtected : 1;
168 bool m_suppressErrorEvents : 1; 169 bool m_suppressErrorEvents : 1;
169 }; 170 };
170 171
171 } // namespace blink 172 } // namespace blink
172 173
173 #endif 174 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698