| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 public ImageBitmapSource, | 48 public ImageBitmapSource, |
| 49 public ActiveScriptWrappable<HTMLImageElement>, | 49 public ActiveScriptWrappable<HTMLImageElement>, |
| 50 public FormAssociated { | 50 public FormAssociated { |
| 51 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
| 52 USING_GARBAGE_COLLECTED_MIXIN(HTMLImageElement); | 52 USING_GARBAGE_COLLECTED_MIXIN(HTMLImageElement); |
| 53 | 53 |
| 54 public: | 54 public: |
| 55 class ViewportChangeListener; | 55 class ViewportChangeListener; |
| 56 | 56 |
| 57 static HTMLImageElement* create(Document&); | 57 static HTMLImageElement* create(Document&); |
| 58 static HTMLImageElement* create(Document&, | 58 static HTMLImageElement* create(Document&, bool createdByParser); |
| 59 bool createdByParser); | |
| 60 static HTMLImageElement* createForJSConstructor(Document&); | 59 static HTMLImageElement* createForJSConstructor(Document&); |
| 61 static HTMLImageElement* createForJSConstructor(Document&, unsigned width); | 60 static HTMLImageElement* createForJSConstructor(Document&, unsigned width); |
| 62 static HTMLImageElement* createForJSConstructor(Document&, | 61 static HTMLImageElement* createForJSConstructor(Document&, |
| 63 unsigned width, | 62 unsigned width, |
| 64 unsigned height); | 63 unsigned height); |
| 65 | 64 |
| 66 ~HTMLImageElement() override; | 65 ~HTMLImageElement() override; |
| 67 DECLARE_VIRTUAL_TRACE(); | 66 DECLARE_VIRTUAL_TRACE(); |
| 68 | 67 |
| 69 unsigned width(); | 68 unsigned width(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 PrimaryContent, | 161 PrimaryContent, |
| 163 // Showing a broken image icon and 'alt' text, if any. Corresponds to the | 162 // Showing a broken image icon and 'alt' text, if any. Corresponds to the |
| 164 // `current request` being in the `broken` state. | 163 // `current request` being in the `broken` state. |
| 165 FallbackContent, | 164 FallbackContent, |
| 166 // No layout object. Corresponds to the `current request` being in the | 165 // No layout object. Corresponds to the `current request` being in the |
| 167 // `broken` state when the resource load failed with an error that has the | 166 // `broken` state when the resource load failed with an error that has the |
| 168 // |shouldCollapseInitiator| flag set. | 167 // |shouldCollapseInitiator| flag set. |
| 169 Collapsed | 168 Collapsed |
| 170 }; | 169 }; |
| 171 | 170 |
| 172 explicit HTMLImageElement(Document&, | 171 explicit HTMLImageElement(Document&, bool createdByParser = false); |
| 173 bool createdByParser = false); | |
| 174 | 172 |
| 175 void didMoveToNewDocument(Document& oldDocument) override; | 173 void didMoveToNewDocument(Document& oldDocument) override; |
| 176 | 174 |
| 177 void didAddUserAgentShadowRoot(ShadowRoot&) override; | 175 void didAddUserAgentShadowRoot(ShadowRoot&) override; |
| 178 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 176 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
| 179 | 177 |
| 180 private: | 178 private: |
| 181 bool areAuthorShadowsAllowed() const override { return false; } | 179 bool areAuthorShadowsAllowed() const override { return false; } |
| 182 | 180 |
| 183 void parseAttribute(const AttributeModificationParams&) override; | 181 void parseAttribute(const AttributeModificationParams&) override; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 unsigned m_formWasSetByParser : 1; | 220 unsigned m_formWasSetByParser : 1; |
| 223 unsigned m_elementCreatedByParser : 1; | 221 unsigned m_elementCreatedByParser : 1; |
| 224 unsigned m_isFallbackImage : 1; | 222 unsigned m_isFallbackImage : 1; |
| 225 | 223 |
| 226 ReferrerPolicy m_referrerPolicy; | 224 ReferrerPolicy m_referrerPolicy; |
| 227 }; | 225 }; |
| 228 | 226 |
| 229 } // namespace blink | 227 } // namespace blink |
| 230 | 228 |
| 231 #endif // HTMLImageElement_h | 229 #endif // HTMLImageElement_h |
| OLD | NEW |