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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void addClient(ImageLoaderClient* client) { imageLoader().addClient(client);
} | 85 void addClient(ImageLoaderClient* client) { imageLoader().addClient(client);
} |
86 void removeClient(ImageLoaderClient* client) { imageLoader().removeClient(cl
ient); } | 86 void removeClient(ImageLoaderClient* client) { imageLoader().removeClient(cl
ient); } |
87 | 87 |
88 virtual const AtomicString imageSourceURL() const override; | 88 virtual const AtomicString imageSourceURL() const override; |
89 | 89 |
90 virtual HTMLFormElement* formOwner() const override; | 90 virtual HTMLFormElement* formOwner() const override; |
91 void formRemovedFromTree(const Node& formRoot); | 91 void formRemovedFromTree(const Node& formRoot); |
92 virtual void ensureFallbackContent(); | 92 virtual void ensureFallbackContent(); |
93 virtual void ensurePrimaryContent(); | 93 virtual void ensurePrimaryContent(); |
94 | 94 |
95 // CanvasImageSourceImplementations | 95 // CanvasImageSource implementation |
96 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; | 96 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; |
97 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 97 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; |
98 virtual FloatSize sourceSize() const override; | 98 virtual FloatSize sourceSize() const override; |
99 virtual FloatSize defaultDestinationSize() const override; | 99 virtual FloatSize defaultDestinationSize() const override; |
100 virtual const KURL& sourceURL() const override; | 100 virtual const KURL& sourceURL() const override; |
| 101 virtual bool isOpaque() const override; |
101 | 102 |
102 // public so that HTMLPictureElement can call this as well. | 103 // public so that HTMLPictureElement can call this as well. |
103 void selectSourceURL(ImageLoader::UpdateFromElementBehavior); | 104 void selectSourceURL(ImageLoader::UpdateFromElementBehavior); |
104 void reattachFallbackContent(); | 105 void reattachFallbackContent(); |
105 void setUseFallbackContent(); | 106 void setUseFallbackContent(); |
106 void setIsFallbackImage() { m_isFallbackImage = true; } | 107 void setIsFallbackImage() { m_isFallbackImage = true; } |
107 | 108 |
108 protected: | 109 protected: |
109 explicit HTMLImageElement(Document&, HTMLFormElement* = 0, bool createdByPar
ser = false); | 110 explicit HTMLImageElement(Document&, HTMLFormElement* = 0, bool createdByPar
ser = false); |
110 | 111 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 unsigned m_elementCreatedByParser : 1; | 159 unsigned m_elementCreatedByParser : 1; |
159 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. | 160 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. |
160 unsigned m_intrinsicSizingViewportDependant : 1; | 161 unsigned m_intrinsicSizingViewportDependant : 1; |
161 unsigned m_useFallbackContent : 1; | 162 unsigned m_useFallbackContent : 1; |
162 unsigned m_isFallbackImage : 1; | 163 unsigned m_isFallbackImage : 1; |
163 }; | 164 }; |
164 | 165 |
165 } // namespace blink | 166 } // namespace blink |
166 | 167 |
167 #endif // HTMLImageElement_h | 168 #endif // HTMLImageElement_h |
OLD | NEW |