| 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 27 matching lines...) Expand all Loading... |
| 38 class HTMLImageElement final : public HTMLElement, public CanvasImageSource { | 38 class HTMLImageElement final : public HTMLElement, public CanvasImageSource { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 public: | 40 public: |
| 41 class ViewportChangeListener; | 41 class ViewportChangeListener; |
| 42 | 42 |
| 43 static PassRefPtr<HTMLImageElement> create(Document&); | 43 static PassRefPtr<HTMLImageElement> create(Document&); |
| 44 static PassRefPtr<HTMLImageElement> create(Document&, bool createdByParser); | 44 static PassRefPtr<HTMLImageElement> create(Document&, bool createdByParser); |
| 45 static PassRefPtr<HTMLImageElement> createForJSConstructor(Document&, int wi
dth, int height); | 45 static PassRefPtr<HTMLImageElement> createForJSConstructor(Document&, int wi
dth, int height); |
| 46 | 46 |
| 47 virtual ~HTMLImageElement(); | 47 virtual ~HTMLImageElement(); |
| 48 virtual void trace(Visitor*) override; | |
| 49 | 48 |
| 50 int width(bool ignorePendingStylesheets = false); | 49 int width(bool ignorePendingStylesheets = false); |
| 51 int height(bool ignorePendingStylesheets = false); | 50 int height(bool ignorePendingStylesheets = false); |
| 52 | 51 |
| 53 int naturalWidth() const; | 52 int naturalWidth() const; |
| 54 int naturalHeight() const; | 53 int naturalHeight() const; |
| 55 const String& currentSrc() const; | 54 const String& currentSrc() const; |
| 56 | 55 |
| 57 ImageResource* cachedImage() const { return imageLoader().image(); } | 56 ImageResource* cachedImage() const { return imageLoader().image(); } |
| 58 void setImageResource(ImageResource* i) { imageLoader().setImage(i); }; | 57 void setImageResource(ImageResource* i) { imageLoader().setImage(i); }; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 unsigned m_elementCreatedByParser : 1; | 116 unsigned m_elementCreatedByParser : 1; |
| 118 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. | 117 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. |
| 119 unsigned m_intrinsicSizingViewportDependant : 1; | 118 unsigned m_intrinsicSizingViewportDependant : 1; |
| 120 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. | 119 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. |
| 121 unsigned m_effectiveSizeViewportDependant : 1; | 120 unsigned m_effectiveSizeViewportDependant : 1; |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace blink | 123 } // namespace blink |
| 125 | 124 |
| 126 #endif // HTMLImageElement_h | 125 #endif // HTMLImageElement_h |
| OLD | NEW |