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 30 matching lines...) Expand all Loading... |
41 public: | 41 public: |
42 class ViewportChangeListener; | 42 class ViewportChangeListener; |
43 | 43 |
44 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&); | 44 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&); |
45 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&, HTMLFormEl
ement*, bool createdByParser); | 45 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&, HTMLFormEl
ement*, bool createdByParser); |
46 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&); | 46 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&); |
47 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&, int width); | 47 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&, int width); |
48 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&, int width, int height); | 48 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&, int width, int height); |
49 | 49 |
50 virtual ~HTMLImageElement(); | 50 virtual ~HTMLImageElement(); |
51 virtual void trace(Visitor*) override; | 51 DECLARE_VIRTUAL_TRACE(); |
52 | 52 |
53 int width(bool ignorePendingStylesheets = false); | 53 int width(bool ignorePendingStylesheets = false); |
54 int height(bool ignorePendingStylesheets = false); | 54 int height(bool ignorePendingStylesheets = false); |
55 | 55 |
56 int naturalWidth() const; | 56 int naturalWidth() const; |
57 int naturalHeight() const; | 57 int naturalHeight() const; |
58 const String& currentSrc() const; | 58 const String& currentSrc() const; |
59 | 59 |
60 bool isServerMap() const; | 60 bool isServerMap() const; |
61 | 61 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 unsigned m_elementCreatedByParser : 1; | 159 unsigned m_elementCreatedByParser : 1; |
160 // 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. |
161 unsigned m_intrinsicSizingViewportDependant : 1; | 161 unsigned m_intrinsicSizingViewportDependant : 1; |
162 unsigned m_useFallbackContent : 1; | 162 unsigned m_useFallbackContent : 1; |
163 unsigned m_isFallbackImage : 1; | 163 unsigned m_isFallbackImage : 1; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace blink | 166 } // namespace blink |
167 | 167 |
168 #endif // HTMLImageElement_h | 168 #endif // HTMLImageElement_h |
OLD | NEW |