mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 782006: Prefetch the "built-in" stylesheet cache in content processes. r=roc
This commit is contained in:
parent
00822f833d
commit
ae7d6c1ee3
@ -48,6 +48,7 @@
|
||||
#include "nsJSEnvironment.h"
|
||||
#include "SandboxHal.h"
|
||||
#include "nsDebugImpl.h"
|
||||
#include "nsLayoutStylesheetCache.h"
|
||||
|
||||
#include "History.h"
|
||||
#include "nsDocShellCID.h"
|
||||
@ -908,11 +909,20 @@ ContentChild::RecvCycleCollect()
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
PreloadSlowThings()
|
||||
{
|
||||
// This fetches and creates all the built-in stylesheets.
|
||||
nsLayoutStylesheetCache::UserContentSheet();
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvAppInfo(const nsCString& version, const nsCString& buildID)
|
||||
{
|
||||
mAppInfo.version.Assign(version);
|
||||
mAppInfo.buildID.Assign(buildID);
|
||||
|
||||
PreloadSlowThings();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user