| 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 ActiveScriptWrappable, | 48 public ActiveScriptWrappable, |
| 49 public FormAssociated { | 49 public FormAssociated { |
| 50 DEFINE_WRAPPERTYPEINFO(); | 50 DEFINE_WRAPPERTYPEINFO(); |
| 51 USING_GARBAGE_COLLECTED_MIXIN(HTMLImageElement); | 51 USING_GARBAGE_COLLECTED_MIXIN(HTMLImageElement); |
| 52 | 52 |
| 53 public: | 53 public: |
| 54 class ViewportChangeListener; | 54 class ViewportChangeListener; |
| 55 | 55 |
| 56 static HTMLImageElement* create(Document&); | 56 static HTMLImageElement* create(Document&); |
| 57 static HTMLImageElement* create(Document&, | 57 static HTMLImageElement* create(Document&, |
| 58 HTMLFormElement*, | |
| 59 bool createdByParser); | 58 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 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // Showing a broken image icon and 'alt' text, if any. Corresponds to the | 154 // Showing a broken image icon and 'alt' text, if any. Corresponds to the |
| 156 // `current request` being in the `broken` state. | 155 // `current request` being in the `broken` state. |
| 157 FallbackContent, | 156 FallbackContent, |
| 158 // No layout object. Corresponds to the `current request` being in the | 157 // No layout object. Corresponds to the `current request` being in the |
| 159 // `broken` state when the resource load failed with an error that has the | 158 // `broken` state when the resource load failed with an error that has the |
| 160 // |shouldCollapseInitiator| flag set. | 159 // |shouldCollapseInitiator| flag set. |
| 161 Collapsed | 160 Collapsed |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 explicit HTMLImageElement(Document&, | 163 explicit HTMLImageElement(Document&, |
| 165 HTMLFormElement* = 0, | |
| 166 bool createdByParser = false); | 164 bool createdByParser = false); |
| 167 | 165 |
| 168 void didMoveToNewDocument(Document& oldDocument) override; | 166 void didMoveToNewDocument(Document& oldDocument) override; |
| 169 | 167 |
| 170 void didAddUserAgentShadowRoot(ShadowRoot&) override; | 168 void didAddUserAgentShadowRoot(ShadowRoot&) override; |
| 171 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 169 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
| 172 | 170 |
| 173 private: | 171 private: |
| 174 bool areAuthorShadowsAllowed() const override { return false; } | 172 bool areAuthorShadowsAllowed() const override { return false; } |
| 175 | 173 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 unsigned m_formWasSetByParser : 1; | 216 unsigned m_formWasSetByParser : 1; |
| 219 unsigned m_elementCreatedByParser : 1; | 217 unsigned m_elementCreatedByParser : 1; |
| 220 unsigned m_isFallbackImage : 1; | 218 unsigned m_isFallbackImage : 1; |
| 221 | 219 |
| 222 ReferrerPolicy m_referrerPolicy; | 220 ReferrerPolicy m_referrerPolicy; |
| 223 }; | 221 }; |
| 224 | 222 |
| 225 } // namespace blink | 223 } // namespace blink |
| 226 | 224 |
| 227 #endif // HTMLImageElement_h | 225 #endif // HTMLImageElement_h |
| OLD | NEW |