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, 2009, 2010 Apple Inc. All rights | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights |
5 * reserved. | 5 * 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 | 481 |
482 // Update ImageAnimationPolicy for m_image. | 482 // Update ImageAnimationPolicy for m_image. |
483 if (m_image) | 483 if (m_image) |
484 m_image->updateImageAnimationPolicy(); | 484 m_image->updateImageAnimationPolicy(); |
485 | 485 |
486 updateLayoutObject(); | 486 updateLayoutObject(); |
487 | 487 |
488 if (m_image && m_image->getImage() && m_image->getImage()->isSVGImage()) | 488 if (m_image && m_image->getImage() && m_image->getImage()->isSVGImage()) |
489 toSVGImage(m_image->getImage())->updateUseCounters(element()->document()); | 489 toSVGImage(m_image->getImage())->updateUseCounters(element()->document()); |
490 | 490 |
| 491 if (isHTMLImageElement(m_element)) { |
| 492 toHTMLImageElement(m_element)->imageNotifyFinished( |
| 493 !resource->errorOccurred()); |
| 494 } |
| 495 |
491 if (!m_hasPendingLoadEvent) | 496 if (!m_hasPendingLoadEvent) |
492 return; | 497 return; |
493 | 498 |
494 if (resource->errorOccurred()) { | 499 if (resource->errorOccurred()) { |
495 loadEventSender().cancelEvent(this); | 500 loadEventSender().cancelEvent(this); |
496 m_hasPendingLoadEvent = false; | 501 m_hasPendingLoadEvent = false; |
497 | 502 |
498 if (resource->resourceError().isAccessCheck()) { | 503 if (resource->resourceError().isAccessCheck()) { |
499 crossSiteOrCSPViolationOccurred( | 504 crossSiteOrCSPViolationOccurred( |
500 AtomicString(resource->resourceError().failingURL())); | 505 AtomicString(resource->resourceError().failingURL())); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 } | 639 } |
635 | 640 |
636 void ImageLoader::elementDidMoveToNewDocument() { | 641 void ImageLoader::elementDidMoveToNewDocument() { |
637 if (m_loadDelayCounter) | 642 if (m_loadDelayCounter) |
638 m_loadDelayCounter->documentChanged(m_element->document()); | 643 m_loadDelayCounter->documentChanged(m_element->document()); |
639 clearFailedLoadURL(); | 644 clearFailedLoadURL(); |
640 setImage(0); | 645 setImage(0); |
641 } | 646 } |
642 | 647 |
643 } // namespace blink | 648 } // namespace blink |
OLD | NEW |