| 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 | |
| 34 ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) | 32 ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) |
| 35 { | 33 { |
| 36 const HashSet<Page*>& pages = Page::ordinaryPages(); | 34 const HashSet<Page*>& pages = Page::ordinaryPages(); |
| 37 | 35 |
| 38 HashSet<Page*>::const_iterator end = pages.end(); | 36 HashSet<Page*>::const_iterator end = pages.end(); |
| 39 for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) { | 37 for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) { |
| 40 Page* page = *it; | 38 Page* page = *it; |
| 41 if (page == exclusion || page->defersLoading()) | 39 if (page == exclusion || page->defersLoading()) |
| 42 continue; | 40 continue; |
| 43 | 41 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 72 | 70 |
| 73 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().
traverseNext()) { | 71 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().
traverseNext()) { |
| 74 if (frame->isLocalFrame()) | 72 if (frame->isLocalFrame()) |
| 75 toLocalFrame(frame)->document()->resumeScheduledTasks(); | 73 toLocalFrame(frame)->document()->resumeScheduledTasks(); |
| 76 } | 74 } |
| 77 } | 75 } |
| 78 } | 76 } |
| 79 } | 77 } |
| 80 | 78 |
| 81 } // namespace WebCore | 79 } // namespace WebCore |
| OLD | NEW |