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