OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/page/PageGroup.h" | 27 #include "core/page/PageGroup.h" |
28 | 28 |
29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
30 #include "core/dom/DocumentStyleSheetCollection.h" | 30 #include "core/dom/DocumentStyleSheetCollection.h" |
31 #include "core/page/Frame.h" | 31 #include "core/page/Frame.h" |
32 #include "core/page/GroupSettings.h" | 32 #include "core/page/GroupSettings.h" |
33 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
34 #include "core/page/Settings.h" | |
35 #include "core/storage/StorageNamespace.h" | 34 #include "core/storage/StorageNamespace.h" |
36 | 35 |
37 namespace WebCore { | 36 namespace WebCore { |
38 | 37 |
39 PageGroup::PageGroup() | 38 PageGroup::PageGroup() |
40 : m_groupSettings(GroupSettings::create()) | 39 : m_groupSettings(GroupSettings::create()) |
41 { | 40 { |
42 } | 41 } |
43 | 42 |
44 PageGroup::~PageGroup() | 43 PageGroup::~PageGroup() |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 { | 97 { |
99 // Clear our cached sheets and have them just reparse. | 98 // Clear our cached sheets and have them just reparse. |
100 HashSet<Page*>::const_iterator end = m_pages.end(); | 99 HashSet<Page*>::const_iterator end = m_pages.end(); |
101 for (HashSet<Page*>::const_iterator it = m_pages.begin(); it != end; ++it) { | 100 for (HashSet<Page*>::const_iterator it = m_pages.begin(); it != end; ++it) { |
102 for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree()->tr
averseNext()) | 101 for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree()->tr
averseNext()) |
103 frame->document()->styleSheetCollection()->invalidateInjectedStyleSh
eetCache(); | 102 frame->document()->styleSheetCollection()->invalidateInjectedStyleSh
eetCache(); |
104 } | 103 } |
105 } | 104 } |
106 | 105 |
107 } // namespace WebCore | 106 } // namespace WebCore |
OLD | NEW |