| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 class HTMLFormElement; | 35 class HTMLFormElement; |
| 36 class ImageCandidate; | 36 class ImageCandidate; |
| 37 | 37 |
| 38 class HTMLImageElement FINAL : public HTMLElement, public CanvasImageSource { | 38 class HTMLImageElement FINAL : public HTMLElement, public CanvasImageSource { |
| 39 public: | 39 public: |
| 40 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&); | 40 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&); |
| 41 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&, HTMLFormEl
ement*, bool createdByParser); | 41 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&, HTMLFormEl
ement*, bool createdByParser); |
| 42 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum
ent&, int width, int height); | 42 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Execu
tionContext*, int width, int height); |
| 43 | 43 |
| 44 virtual ~HTMLImageElement(); | 44 virtual ~HTMLImageElement(); |
| 45 virtual void trace(Visitor*) OVERRIDE; | 45 virtual void trace(Visitor*) OVERRIDE; |
| 46 | 46 |
| 47 int width(bool ignorePendingStylesheets = false); | 47 int width(bool ignorePendingStylesheets = false); |
| 48 int height(bool ignorePendingStylesheets = false); | 48 int height(bool ignorePendingStylesheets = false); |
| 49 | 49 |
| 50 int naturalWidth() const; | 50 int naturalWidth() const; |
| 51 int naturalHeight() const; | 51 int naturalHeight() const; |
| 52 const AtomicString& currentSrc() const; | 52 const AtomicString& currentSrc() const; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 AtomicString m_bestFitImageURL; | 147 AtomicString m_bestFitImageURL; |
| 148 AtomicString m_currentSrc; | 148 AtomicString m_currentSrc; |
| 149 float m_imageDevicePixelRatio; | 149 float m_imageDevicePixelRatio; |
| 150 bool m_formWasSetByParser; | 150 bool m_formWasSetByParser; |
| 151 bool m_elementCreatedByParser; | 151 bool m_elementCreatedByParser; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } //namespace | 154 } //namespace |
| 155 | 155 |
| 156 #endif | 156 #endif |
| OLD | NEW |