| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "core/html/ImageDocument.h" | 25 #include "core/html/ImageDocument.h" |
| 26 | 26 |
| 27 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 27 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
| 29 #include "core/dom/RawDataDocumentParser.h" | 29 #include "core/dom/RawDataDocumentParser.h" |
| 30 #include "core/events/EventListener.h" | 30 #include "core/events/EventListener.h" |
| 31 #include "core/events/MouseEvent.h" | 31 #include "core/events/MouseEvent.h" |
| 32 #include "core/fetch/ImageResource.h" | |
| 33 #include "core/frame/FrameHost.h" | 32 #include "core/frame/FrameHost.h" |
| 34 #include "core/frame/FrameView.h" | 33 #include "core/frame/FrameView.h" |
| 35 #include "core/frame/LocalDOMWindow.h" | 34 #include "core/frame/LocalDOMWindow.h" |
| 36 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 37 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
| 38 #include "core/frame/UseCounter.h" | 37 #include "core/frame/UseCounter.h" |
| 39 #include "core/frame/VisualViewport.h" | 38 #include "core/frame/VisualViewport.h" |
| 40 #include "core/html/HTMLBodyElement.h" | 39 #include "core/html/HTMLBodyElement.h" |
| 41 #include "core/html/HTMLContentElement.h" | 40 #include "core/html/HTMLContentElement.h" |
| 42 #include "core/html/HTMLDivElement.h" | 41 #include "core/html/HTMLDivElement.h" |
| 43 #include "core/html/HTMLHeadElement.h" | 42 #include "core/html/HTMLHeadElement.h" |
| 44 #include "core/html/HTMLHtmlElement.h" | 43 #include "core/html/HTMLHtmlElement.h" |
| 45 #include "core/html/HTMLImageElement.h" | 44 #include "core/html/HTMLImageElement.h" |
| 46 #include "core/html/HTMLMetaElement.h" | 45 #include "core/html/HTMLMetaElement.h" |
| 47 #include "core/layout/LayoutObject.h" | 46 #include "core/layout/LayoutObject.h" |
| 48 #include "core/loader/DocumentLoader.h" | 47 #include "core/loader/DocumentLoader.h" |
| 49 #include "core/loader/FrameLoader.h" | 48 #include "core/loader/FrameLoader.h" |
| 50 #include "core/loader/FrameLoaderClient.h" | 49 #include "core/loader/FrameLoaderClient.h" |
| 50 #include "core/loader/resource/ImageResource.h" |
| 51 #include "platform/HostWindow.h" | 51 #include "platform/HostWindow.h" |
| 52 #include "wtf/text/StringBuilder.h" | 52 #include "wtf/text/StringBuilder.h" |
| 53 #include <limits> | 53 #include <limits> |
| 54 | 54 |
| 55 using namespace std; | 55 using namespace std; |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| 58 | 58 |
| 59 // The base square size is set to 10 because it rounds nicely for both the | 59 // The base square size is set to 10 because it rounds nicely for both the |
| 60 // minimum scale (0.1) and maximum scale (5.0). | 60 // minimum scale (0.1) and maximum scale (5.0). |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 } | 619 } |
| 620 | 620 |
| 621 bool ImageEventListener::operator==(const EventListener& listener) const { | 621 bool ImageEventListener::operator==(const EventListener& listener) const { |
| 622 if (const ImageEventListener* imageEventListener = | 622 if (const ImageEventListener* imageEventListener = |
| 623 ImageEventListener::cast(&listener)) | 623 ImageEventListener::cast(&listener)) |
| 624 return m_doc == imageEventListener->m_doc; | 624 return m_doc == imageEventListener->m_doc; |
| 625 return false; | 625 return false; |
| 626 } | 626 } |
| 627 | 627 |
| 628 } // namespace blink | 628 } // namespace blink |
| OLD | NEW |