| 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, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 visitor->trace(m_element); | 80 visitor->trace(m_element); |
| 81 MediaQueryListListener::trace(visitor); | 81 MediaQueryListListener::trace(visitor); |
| 82 } | 82 } |
| 83 private: | 83 private: |
| 84 explicit ViewportChangeListener(HTMLImageElement* element) : m_element(eleme
nt) { } | 84 explicit ViewportChangeListener(HTMLImageElement* element) : m_element(eleme
nt) { } |
| 85 RawPtrWillBeMember<HTMLImageElement> m_element; | 85 RawPtrWillBeMember<HTMLImageElement> m_element; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo
ol createdByParser) | 88 HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo
ol createdByParser) |
| 89 : HTMLElement(imgTag, document) | 89 : HTMLElement(imgTag, document) |
| 90 , ActiveScriptWrappable(this) |
| 90 , m_imageLoader(HTMLImageLoader::create(this)) | 91 , m_imageLoader(HTMLImageLoader::create(this)) |
| 91 , m_imageDevicePixelRatio(1.0f) | 92 , m_imageDevicePixelRatio(1.0f) |
| 92 , m_source(nullptr) | 93 , m_source(nullptr) |
| 93 , m_formWasSetByParser(false) | 94 , m_formWasSetByParser(false) |
| 94 , m_elementCreatedByParser(createdByParser) | 95 , m_elementCreatedByParser(createdByParser) |
| 95 , m_useFallbackContent(false) | 96 , m_useFallbackContent(false) |
| 96 , m_isFallbackImage(false) | 97 , m_isFallbackImage(false) |
| 97 , m_referrerPolicy(ReferrerPolicyDefault) | 98 , m_referrerPolicy(ReferrerPolicyDefault) |
| 98 { | 99 { |
| 99 setHasCustomStyleCallbacks(); | 100 setHasCustomStyleCallbacks(); |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 { | 836 { |
| 836 ImageResource* image = cachedImage(); | 837 ImageResource* image = cachedImage(); |
| 837 if (!image) | 838 if (!image) |
| 838 return IntSize(); | 839 return IntSize(); |
| 839 LayoutSize lSize = image->imageSize(LayoutObject::shouldRespectImageOrientat
ion(layoutObject()), 1.0f); | 840 LayoutSize lSize = image->imageSize(LayoutObject::shouldRespectImageOrientat
ion(layoutObject()), 1.0f); |
| 840 ASSERT(lSize.fraction().isZero()); | 841 ASSERT(lSize.fraction().isZero()); |
| 841 return IntSize(lSize.width(), lSize.height()); | 842 return IntSize(lSize.width(), lSize.height()); |
| 842 } | 843 } |
| 843 | 844 |
| 844 } // namespace blink | 845 } // namespace blink |
| OLD | NEW |