| 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 28 matching lines...) Expand all Loading... |
| 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 | 48 |
| 49 int width(bool ignorePendingStylesheets = false); | 49 int width(); |
| 50 int height(bool ignorePendingStylesheets = false); | 50 int height(); |
| 51 | 51 |
| 52 int naturalWidth() const; | 52 int naturalWidth() const; |
| 53 int naturalHeight() const; | 53 int naturalHeight() const; |
| 54 const String& currentSrc() const; | 54 const String& currentSrc() const; |
| 55 | 55 |
| 56 ImageResource* cachedImage() const { return imageLoader().image(); } | 56 ImageResource* cachedImage() const { return imageLoader().image(); } |
| 57 void setImageResource(ImageResource* i) { imageLoader().setImage(i); }; | 57 void setImageResource(ImageResource* i) { imageLoader().setImage(i); }; |
| 58 | 58 |
| 59 void setHeight(int); | 59 void setHeight(int); |
| 60 | 60 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 unsigned m_elementCreatedByParser : 1; | 113 unsigned m_elementCreatedByParser : 1; |
| 114 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. | 114 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. |
| 115 unsigned m_intrinsicSizingViewportDependant : 1; | 115 unsigned m_intrinsicSizingViewportDependant : 1; |
| 116 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. | 116 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. |
| 117 unsigned m_effectiveSizeViewportDependant : 1; | 117 unsigned m_effectiveSizeViewportDependant : 1; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace blink | 120 } // namespace blink |
| 121 | 121 |
| 122 #endif // SKY_ENGINE_CORE_HTML_HTMLIMAGEELEMENT_H_ | 122 #endif // SKY_ENGINE_CORE_HTML_HTMLIMAGEELEMENT_H_ |
| OLD | NEW |