| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/html/HTMLAnchorElement.h" | 36 #include "core/html/HTMLAnchorElement.h" |
| 37 #include "core/html/HTMLCanvasElement.h" | 37 #include "core/html/HTMLCanvasElement.h" |
| 38 #include "core/html/HTMLFormElement.h" | 38 #include "core/html/HTMLFormElement.h" |
| 39 #include "core/html/HTMLSourceElement.h" | 39 #include "core/html/HTMLSourceElement.h" |
| 40 #include "core/html/canvas/CanvasRenderingContext.h" | 40 #include "core/html/canvas/CanvasRenderingContext.h" |
| 41 #include "core/html/parser/HTMLParserIdioms.h" | 41 #include "core/html/parser/HTMLParserIdioms.h" |
| 42 #include "core/html/parser/HTMLSrcsetParser.h" | 42 #include "core/html/parser/HTMLSrcsetParser.h" |
| 43 #include "core/rendering/RenderImage.h" | 43 #include "core/rendering/RenderImage.h" |
| 44 #include "platform/MIMETypeRegistry.h" | 44 #include "platform/MIMETypeRegistry.h" |
| 45 | 45 |
| 46 using namespace std; | |
| 47 | |
| 48 namespace WebCore { | 46 namespace WebCore { |
| 49 | 47 |
| 50 using namespace HTMLNames; | 48 using namespace HTMLNames; |
| 51 | 49 |
| 52 HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo
ol createdByParser) | 50 HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo
ol createdByParser) |
| 53 : HTMLElement(imgTag, document) | 51 : HTMLElement(imgTag, document) |
| 54 , m_imageLoader(HTMLImageLoader::create(this)) | 52 , m_imageLoader(HTMLImageLoader::create(this)) |
| 55 , m_compositeOperator(CompositeSourceOver) | 53 , m_compositeOperator(CompositeSourceOver) |
| 56 , m_imageDevicePixelRatio(1.0f) | 54 , m_imageDevicePixelRatio(1.0f) |
| 57 , m_formWasSetByParser(false) | 55 , m_formWasSetByParser(false) |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 else | 585 else |
| 588 imageLoader().updateFromElement(); | 586 imageLoader().updateFromElement(); |
| 589 } | 587 } |
| 590 | 588 |
| 591 const KURL& HTMLImageElement::sourceURL() const | 589 const KURL& HTMLImageElement::sourceURL() const |
| 592 { | 590 { |
| 593 return cachedImage()->response().url(); | 591 return cachedImage()->response().url(); |
| 594 } | 592 } |
| 595 | 593 |
| 596 } | 594 } |
| OLD | NEW |