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

Unified Diff: Source/core/page/InjectedStyleSheets.cpp

Issue 302213002: Convert page-level classes to handle RemoteFrames from FrameTree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: bug fix Created 6 years, 7 months 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/core/page/EventHandler.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/InjectedStyleSheets.cpp
diff --git a/Source/core/page/InjectedStyleSheets.cpp b/Source/core/page/InjectedStyleSheets.cpp
index 80c971bf4fcbc4b123b72f74db73e47aa95c3991..c5760054d6f1cd4cbc4566dcf7ad8dd229aaae29 100644
--- a/Source/core/page/InjectedStyleSheets.cpp
+++ b/Source/core/page/InjectedStyleSheets.cpp
@@ -55,8 +55,10 @@ void InjectedStyleSheets::invalidateInjectedStyleSheetCacheInAllFrames()
HashSet<Page*>::const_iterator end = pages.end();
for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) {
- for (LocalFrame* frame = (*it)->mainFrame(); frame; frame = frame->tree().traverseNext())
- frame->document()->styleEngine()->invalidateInjectedStyleSheetCache();
+ for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree().traverseNext()) {
+ if (frame->isLocalFrame())
+ toLocalFrame(frame)->document()->styleEngine()->invalidateInjectedStyleSheetCache();
+ }
}
}
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698