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 reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights reserv
ed. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
27 #include "core/dom/Element.h" | 27 #include "core/dom/Element.h" |
28 #include "core/dom/IncrementLoadEventDelayCount.h" | 28 #include "core/dom/IncrementLoadEventDelayCount.h" |
29 #include "core/dom/Microtask.h" | 29 #include "core/dom/Microtask.h" |
30 #include "core/events/Event.h" | 30 #include "core/events/Event.h" |
31 #include "core/events/EventSender.h" | 31 #include "core/events/EventSender.h" |
32 #include "core/fetch/FetchRequest.h" | 32 #include "core/fetch/FetchRequest.h" |
33 #include "core/fetch/MemoryCache.h" | 33 #include "core/fetch/MemoryCache.h" |
34 #include "core/fetch/ResourceFetcher.h" | 34 #include "core/fetch/ResourceFetcher.h" |
35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 36 #include "core/frame/Settings.h" |
36 #include "core/frame/UseCounter.h" | 37 #include "core/frame/UseCounter.h" |
37 #include "core/html/HTMLImageElement.h" | 38 #include "core/html/HTMLImageElement.h" |
38 #include "core/html/parser/HTMLParserIdioms.h" | 39 #include "core/html/parser/HTMLParserIdioms.h" |
39 #include "core/layout/LayoutImage.h" | 40 #include "core/layout/LayoutImage.h" |
40 #include "core/layout/LayoutVideo.h" | 41 #include "core/layout/LayoutVideo.h" |
41 #include "core/layout/svg/LayoutSVGImage.h" | 42 #include "core/layout/svg/LayoutSVGImage.h" |
42 #include "core/svg/graphics/SVGImage.h" | 43 #include "core/svg/graphics/SVGImage.h" |
43 #include "platform/Logging.h" | 44 #include "platform/Logging.h" |
44 #include "platform/weborigin/SecurityOrigin.h" | 45 #include "platform/weborigin/SecurityOrigin.h" |
45 #include "public/platform/WebURLRequest.h" | 46 #include "public/platform/WebURLRequest.h" |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 memoryCache()->updateDecodedResource(m_image.get(), UpdateForPropert
yChange, MemoryCacheLiveResourcePriorityLow); | 585 memoryCache()->updateDecodedResource(m_image.get(), UpdateForPropert
yChange, MemoryCacheLiveResourcePriorityLow); |
585 } | 586 } |
586 } | 587 } |
587 | 588 |
588 void ImageLoader::removeClient(ImageLoaderClient* client) | 589 void ImageLoader::removeClient(ImageLoaderClient* client) |
589 { | 590 { |
590 willRemoveClient(*client); | 591 willRemoveClient(*client); |
591 m_clients.remove(client); | 592 m_clients.remove(client); |
592 } | 593 } |
593 | 594 |
| 595 bool ImageLoader::getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&
policy) |
| 596 { |
| 597 if (!element()->document().settings()) |
| 598 return false; |
| 599 |
| 600 policy = element()->document().settings()->imageAnimationPolicy(); |
| 601 return true; |
| 602 } |
| 603 |
594 void ImageLoader::dispatchPendingLoadEvents() | 604 void ImageLoader::dispatchPendingLoadEvents() |
595 { | 605 { |
596 loadEventSender().dispatchPendingEvents(); | 606 loadEventSender().dispatchPendingEvents(); |
597 } | 607 } |
598 | 608 |
599 void ImageLoader::dispatchPendingErrorEvents() | 609 void ImageLoader::dispatchPendingErrorEvents() |
600 { | 610 { |
601 errorEventSender().dispatchPendingEvents(); | 611 errorEventSender().dispatchPendingEvents(); |
602 } | 612 } |
603 | 613 |
(...skipping 18 matching lines...) Expand all Loading... |
622 #endif | 632 #endif |
623 } | 633 } |
624 | 634 |
625 #if ENABLE(OILPAN) | 635 #if ENABLE(OILPAN) |
626 ImageLoader::ImageLoaderClientRemover::~ImageLoaderClientRemover() | 636 ImageLoader::ImageLoaderClientRemover::~ImageLoaderClientRemover() |
627 { | 637 { |
628 m_loader.willRemoveClient(m_client); | 638 m_loader.willRemoveClient(m_client); |
629 } | 639 } |
630 #endif | 640 #endif |
631 } | 641 } |
OLD | NEW |