| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 #endif | 86 #endif |
| 87 } | 87 } |
| 88 | 88 |
| 89 void HTMLImageElement::trace(Visitor* visitor) | 89 void HTMLImageElement::trace(Visitor* visitor) |
| 90 { | 90 { |
| 91 visitor->trace(m_imageLoader); | 91 visitor->trace(m_imageLoader); |
| 92 visitor->trace(m_form); | 92 visitor->trace(m_form); |
| 93 HTMLElement::trace(visitor); | 93 HTMLElement::trace(visitor); |
| 94 } | 94 } |
| 95 | 95 |
| 96 PassRefPtrWillBeRawPtr<HTMLImageElement> HTMLImageElement::createForJSConstructo
r(Document& document, int width, int height) | 96 PassRefPtrWillBeRawPtr<HTMLImageElement> HTMLImageElement::createForJSConstructo
r(ExecutionContext* executionContext, int width, int height) |
| 97 { | 97 { |
| 98 RefPtrWillBeRawPtr<HTMLImageElement> image = adoptRefWillBeNoop(new HTMLImag
eElement(document)); | 98 RefPtrWillBeRawPtr<HTMLImageElement> image = adoptRefWillBeNoop(new HTMLImag
eElement(*toDocument(executionContext))); |
| 99 if (width) | 99 if (width) |
| 100 image->setWidth(width); | 100 image->setWidth(width); |
| 101 if (height) | 101 if (height) |
| 102 image->setHeight(height); | 102 image->setHeight(height); |
| 103 image->m_elementCreatedByParser = false; | 103 image->m_elementCreatedByParser = false; |
| 104 return image.release(); | 104 return image.release(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool HTMLImageElement::isPresentationAttribute(const QualifiedName& name) const | 107 bool HTMLImageElement::isPresentationAttribute(const QualifiedName& name) const |
| 108 { | 108 { |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 else | 585 else |
| 586 imageLoader().updateFromElement(); | 586 imageLoader().updateFromElement(); |
| 587 } | 587 } |
| 588 | 588 |
| 589 const KURL& HTMLImageElement::sourceURL() const | 589 const KURL& HTMLImageElement::sourceURL() const |
| 590 { | 590 { |
| 591 return cachedImage()->response().url(); | 591 return cachedImage()->response().url(); |
| 592 } | 592 } |
| 593 | 593 |
| 594 } | 594 } |
| OLD | NEW |