Index: Source/WebCore/page/PageGroup.cpp |
=================================================================== |
--- Source/WebCore/page/PageGroup.cpp (revision 135771) |
+++ Source/WebCore/page/PageGroup.cpp (working copy) |
@@ -301,7 +301,7 @@ |
styleSheetsInWorld->append(userStyleSheet.release()); |
if (injectionTime == InjectInExistingDocuments) |
- resetUserStyleCacheInAllFrames(); |
+ invalidatedInjectedStyleSheetCacheInAllFrames(); |
} |
void PageGroup::removeUserScriptFromWorld(DOMWrapperWorld* world, const KURL& url) |
@@ -351,7 +351,7 @@ |
if (stylesheets->isEmpty()) |
m_userStyleSheets->remove(it); |
- resetUserStyleCacheInAllFrames(); |
+ invalidatedInjectedStyleSheetCacheInAllFrames(); |
} |
void PageGroup::removeUserScriptsFromWorld(DOMWrapperWorld* world) |
@@ -381,7 +381,7 @@ |
m_userStyleSheets->remove(it); |
- resetUserStyleCacheInAllFrames(); |
+ invalidatedInjectedStyleSheetCacheInAllFrames(); |
} |
void PageGroup::removeAllUserContent() |
@@ -390,17 +390,17 @@ |
if (m_userStyleSheets) { |
m_userStyleSheets.clear(); |
- resetUserStyleCacheInAllFrames(); |
+ invalidatedInjectedStyleSheetCacheInAllFrames(); |
} |
} |
-void PageGroup::resetUserStyleCacheInAllFrames() |
+void PageGroup::invalidatedInjectedStyleSheetCacheInAllFrames() |
{ |
// Clear our cached sheets and have them just reparse. |
HashSet<Page*>::const_iterator end = m_pages.end(); |
for (HashSet<Page*>::const_iterator it = m_pages.begin(); it != end; ++it) { |
for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree()->traverseNext()) |
- frame->document()->styleSheetCollection()->updatePageGroupUserSheets(); |
+ frame->document()->styleSheetCollection()->invalidateInjectedStyleSheetCache(); |
} |
} |