OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights 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 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #include "core/dom/ClientRectList.h" | 23 #include "core/dom/ClientRectList.h" |
24 #include "core/dom/DocumentMarkerController.h" | 24 #include "core/dom/DocumentMarkerController.h" |
25 #include "core/dom/StyleEngine.h" | 25 #include "core/dom/StyleEngine.h" |
26 #include "core/dom/VisitedLinkState.h" | 26 #include "core/dom/VisitedLinkState.h" |
27 #include "core/editing/Caret.h" | 27 #include "core/editing/Caret.h" |
28 #include "core/editing/UndoStack.h" | 28 #include "core/editing/UndoStack.h" |
29 #include "core/events/Event.h" | 29 #include "core/events/Event.h" |
30 #include "core/fetch/ResourceFetcher.h" | 30 #include "core/fetch/ResourceFetcher.h" |
31 #include "core/frame/DOMTimer.h" | 31 #include "core/frame/DOMTimer.h" |
32 #include "core/frame/DOMWindow.h" | 32 #include "core/frame/LocalDOMWindow.h" |
33 #include "core/frame/EventHandlerRegistry.h" | 33 #include "core/frame/EventHandlerRegistry.h" |
34 #include "core/frame/FrameHost.h" | 34 #include "core/frame/FrameHost.h" |
35 #include "core/frame/FrameView.h" | 35 #include "core/frame/FrameView.h" |
36 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
37 #include "core/frame/RemoteFrame.h" | 37 #include "core/frame/RemoteFrame.h" |
38 #include "core/frame/RemoteFrameView.h" | 38 #include "core/frame/RemoteFrameView.h" |
39 #include "core/frame/Settings.h" | 39 #include "core/frame/Settings.h" |
40 #include "core/inspector/InspectorController.h" | 40 #include "core/inspector/InspectorController.h" |
41 #include "core/inspector/InspectorInstrumentation.h" | 41 #include "core/inspector/InspectorInstrumentation.h" |
42 #include "core/loader/FrameLoader.h" | 42 #include "core/loader/FrameLoader.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 if (m_mainFrame == frame) { | 561 if (m_mainFrame == frame) { |
562 useCounter().didCommitLoad(); | 562 useCounter().didCommitLoad(); |
563 m_inspectorController->didCommitLoadForMainFrame(); | 563 m_inspectorController->didCommitLoadForMainFrame(); |
564 } | 564 } |
565 } | 565 } |
566 | 566 |
567 void Page::acceptLanguagesChanged() | 567 void Page::acceptLanguagesChanged() |
568 { | 568 { |
569 Vector< RefPtr<LocalFrame> > frames; | 569 Vector< RefPtr<LocalFrame> > frames; |
570 | 570 |
571 // Even though we don't fire an event from here, the DOMWindow's will fire | 571 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire |
572 // an event so we keep the frames alive until we are done. | 572 // an event so we keep the frames alive until we are done. |
573 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 573 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
574 if (frame->isLocalFrame()) | 574 if (frame->isLocalFrame()) |
575 frames.append(toLocalFrame(frame)); | 575 frames.append(toLocalFrame(frame)); |
576 } | 576 } |
577 | 577 |
578 for (unsigned i = 0; i < frames.size(); ++i) | 578 for (unsigned i = 0; i < frames.size(); ++i) |
579 frames[i]->domWindow()->acceptLanguagesChanged(); | 579 frames[i]->domWindow()->acceptLanguagesChanged(); |
580 } | 580 } |
581 | 581 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 , spellCheckerClient(0) | 645 , spellCheckerClient(0) |
646 , storageClient(0) | 646 , storageClient(0) |
647 { | 647 { |
648 } | 648 } |
649 | 649 |
650 Page::PageClients::~PageClients() | 650 Page::PageClients::~PageClients() |
651 { | 651 { |
652 } | 652 } |
653 | 653 |
654 } // namespace WebCore | 654 } // namespace WebCore |
OLD | NEW |