Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: Source/WebCore/page/PageGroup.cpp

Issue 11412176: Merge 135082 - REGRESSION(r129644): User StyleSheet not applying (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/page/PageGroup.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « Source/WebCore/page/PageGroup.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698