| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 AtomicString eventName = networkStateNotifier().onLine() ? eventNames().onli
neEvent : eventNames().offlineEvent; | 91 AtomicString eventName = networkStateNotifier().onLine() ? eventNames().onli
neEvent : eventNames().offlineEvent; |
| 92 | 92 |
| 93 for (unsigned i = 0; i < frames.size(); i++) { | 93 for (unsigned i = 0; i < frames.size(); i++) { |
| 94 Document* document = frames[i]->document(); | 94 Document* document = frames[i]->document(); |
| 95 | 95 |
| 96 if (!document) | 96 if (!document) |
| 97 continue; | 97 continue; |
| 98 | 98 |
| 99 // If the document does not have a body the event should be dispatched t
o the document | 99 // If the document does not have a body the event should be dispatched t
o the document |
| 100 Node* eventTarget = document->body(); | 100 EventTargetNode* eventTarget = document->body(); |
| 101 if (!eventTarget) | 101 if (!eventTarget) |
| 102 eventTarget = document; | 102 eventTarget = document; |
| 103 | 103 |
| 104 eventTarget->dispatchEventForType(eventName, false, false); | 104 eventTarget->dispatchEventForType(eventName, false, false); |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 | 107 |
| 108 Page::Page(ChromeClient* chromeClient, ContextMenuClient* contextMenuClient, Edi
torClient* editorClient, DragClient* dragClient, InspectorClient* inspectorClien
t) | 108 Page::Page(ChromeClient* chromeClient, ContextMenuClient* contextMenuClient, Edi
torClient* editorClient, DragClient* dragClient, InspectorClient* inspectorClien
t) |
| 109 : m_chrome(new Chrome(this, chromeClient)) | 109 : m_chrome(new Chrome(this, chromeClient)) |
| 110 , m_dragCaretController(new SelectionController(0, true)) | 110 , m_dragCaretController(new SelectionController(0, true)) |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 | 639 |
| 640 m_areMemoryCacheClientCallsEnabled = enabled; | 640 m_areMemoryCacheClientCallsEnabled = enabled; |
| 641 if (!enabled) | 641 if (!enabled) |
| 642 return; | 642 return; |
| 643 | 643 |
| 644 for (RefPtr<Frame> frame = mainFrame(); frame; frame = frame->tree()->traver
seNext()) | 644 for (RefPtr<Frame> frame = mainFrame(); frame; frame = frame->tree()->traver
seNext()) |
| 645 frame->loader()->tellClientAboutPastMemoryCacheLoads(); | 645 frame->loader()->tellClientAboutPastMemoryCacheLoads(); |
| 646 } | 646 } |
| 647 | 647 |
| 648 } // namespace WebCore | 648 } // namespace WebCore |
| OLD | NEW |