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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 | 967 |
968 HashSet<RefPtr<Widget> >::const_iterator end = children->end(); | 968 HashSet<RefPtr<Widget> >::const_iterator end = children->end(); |
969 for (HashSet<RefPtr<Widget> >::const_iterator it = children->begin(); it
!= end; ++it) { | 969 for (HashSet<RefPtr<Widget> >::const_iterator it = children->begin(); it
!= end; ++it) { |
970 Widget* widget = (*it).get(); | 970 Widget* widget = (*it).get(); |
971 if (widget->isPluginViewBase()) | 971 if (widget->isPluginViewBase()) |
972 pluginViewBases.append(toPluginViewBase(widget)); | 972 pluginViewBases.append(toPluginViewBase(widget)); |
973 } | 973 } |
974 } | 974 } |
975 } | 975 } |
976 | 976 |
977 void Page::storageBlockingStateChanged() | |
978 { | |
979 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) | |
980 frame->document()->storageBlockingStateDidChange(); | |
981 | |
982 // Collect the PluginViews in to a vector to ensure that action the plug-in
takes | |
983 // from below storageBlockingStateChanged does not affect their lifetime. | |
984 Vector<RefPtr<PluginViewBase>, 32> pluginViewBases; | |
985 collectPluginViews(pluginViewBases); | |
986 | |
987 for (size_t i = 0; i < pluginViewBases.size(); ++i) | |
988 pluginViewBases[i]->storageBlockingStateChanged(); | |
989 } | |
990 | |
991 #if !ASSERT_DISABLED | 977 #if !ASSERT_DISABLED |
992 void Page::checkSubframeCountConsistency() const | 978 void Page::checkSubframeCountConsistency() const |
993 { | 979 { |
994 ASSERT(m_subframeCount >= 0); | 980 ASSERT(m_subframeCount >= 0); |
995 | 981 |
996 int subframeCount = 0; | 982 int subframeCount = 0; |
997 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) | 983 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) |
998 ++subframeCount; | 984 ++subframeCount; |
999 | 985 |
1000 ASSERT(m_subframeCount + 1 == subframeCount); | 986 ASSERT(m_subframeCount + 1 == subframeCount); |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 , plugInClient(0) | 1267 , plugInClient(0) |
1282 , validationMessageClient(0) | 1268 , validationMessageClient(0) |
1283 { | 1269 { |
1284 } | 1270 } |
1285 | 1271 |
1286 Page::PageClients::~PageClients() | 1272 Page::PageClients::~PageClients() |
1287 { | 1273 { |
1288 } | 1274 } |
1289 | 1275 |
1290 } // namespace WebCore | 1276 } // namespace WebCore |
OLD | NEW |