| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/html/HTMLImageElement.h" | 35 #include "core/html/HTMLImageElement.h" |
| 36 #include "core/loader/DocumentLoader.h" | 36 #include "core/loader/DocumentLoader.h" |
| 37 #include "core/loader/FrameLoader.h" | 37 #include "core/loader/FrameLoader.h" |
| 38 #include "core/loader/FrameLoaderClient.h" | 38 #include "core/loader/FrameLoaderClient.h" |
| 39 #include "core/loader/cache/CachedImage.h" | 39 #include "core/loader/cache/CachedImage.h" |
| 40 #include "core/page/Frame.h" | 40 #include "core/page/Frame.h" |
| 41 #include "core/page/FrameView.h" | 41 #include "core/page/FrameView.h" |
| 42 #include "core/page/Page.h" | 42 #include "core/page/Page.h" |
| 43 #include "core/page/Settings.h" | 43 #include "core/page/Settings.h" |
| 44 #include "core/platform/LocalizedStrings.h" | 44 #include "core/platform/LocalizedStrings.h" |
| 45 #include "core/platform/NotImplemented.h" | |
| 46 | 45 |
| 47 using std::min; | 46 using std::min; |
| 48 | 47 |
| 49 namespace WebCore { | 48 namespace WebCore { |
| 50 | 49 |
| 51 using namespace HTMLNames; | 50 using namespace HTMLNames; |
| 52 | 51 |
| 53 class ImageEventListener : public EventListener { | 52 class ImageEventListener : public EventListener { |
| 54 public: | 53 public: |
| 55 static PassRefPtr<ImageEventListener> create(ImageDocument* document) { retu
rn adoptRef(new ImageEventListener(document)); } | 54 static PassRefPtr<ImageEventListener> create(ImageDocument* document) { retu
rn adoptRef(new ImageEventListener(document)); } |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 void ImageDocumentElement::didMoveToNewDocument(Document* oldDocument) | 394 void ImageDocumentElement::didMoveToNewDocument(Document* oldDocument) |
| 396 { | 395 { |
| 397 if (m_imageDocument) { | 396 if (m_imageDocument) { |
| 398 m_imageDocument->disconnectImageElement(); | 397 m_imageDocument->disconnectImageElement(); |
| 399 m_imageDocument = 0; | 398 m_imageDocument = 0; |
| 400 } | 399 } |
| 401 HTMLImageElement::didMoveToNewDocument(oldDocument); | 400 HTMLImageElement::didMoveToNewDocument(oldDocument); |
| 402 } | 401 } |
| 403 | 402 |
| 404 } | 403 } |
| OLD | NEW |