OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
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 11 matching lines...) Expand all Loading... |
22 #include "core/page/ScopedPageLoadDeferrer.h" | 22 #include "core/page/ScopedPageLoadDeferrer.h" |
23 | 23 |
24 #include "core/dom/Document.h" | 24 #include "core/dom/Document.h" |
25 #include "core/frame/LocalFrame.h" | 25 #include "core/frame/LocalFrame.h" |
26 #include "core/loader/FrameLoader.h" | 26 #include "core/loader/FrameLoader.h" |
27 #include "core/page/Page.h" | 27 #include "core/page/Page.h" |
28 #include "wtf/HashSet.h" | 28 #include "wtf/HashSet.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
| 32 using namespace std; |
| 33 |
32 ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) | 34 ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) |
33 { | 35 { |
34 const HashSet<Page*>& pages = Page::ordinaryPages(); | 36 const HashSet<Page*>& pages = Page::ordinaryPages(); |
35 | 37 |
36 HashSet<Page*>::const_iterator end = pages.end(); | 38 HashSet<Page*>::const_iterator end = pages.end(); |
37 for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) { | 39 for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) { |
38 Page* page = *it; | 40 Page* page = *it; |
39 if (page == exclusion || page->defersLoading()) | 41 if (page == exclusion || page->defersLoading()) |
40 continue; | 42 continue; |
41 | 43 |
(...skipping 26 matching lines...) Expand all Loading... |
68 | 70 |
69 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().
traverseNext()) { | 71 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().
traverseNext()) { |
70 if (frame->isLocalFrame()) | 72 if (frame->isLocalFrame()) |
71 toLocalFrame(frame)->document()->resumeScheduledTasks(); | 73 toLocalFrame(frame)->document()->resumeScheduledTasks(); |
72 } | 74 } |
73 } | 75 } |
74 } | 76 } |
75 } | 77 } |
76 | 78 |
77 } // namespace WebCore | 79 } // namespace WebCore |
OLD | NEW |