зеркало из https://github.com/mozilla/gecko-dev.git
Bug 865745 - Rename nsFrameScriptExecutor::DidCreateCx. r=smaug
This commit is contained in:
Родитель
d7997a7b72
Коммит
ba3407d692
|
@ -930,9 +930,9 @@ nsDataHashtable<nsStringHashKey, nsFrameJSScriptExecutorHolder*>*
|
|||
nsScriptCacheCleaner* nsFrameScriptExecutor::sScriptCacheCleaner = nullptr;
|
||||
|
||||
void
|
||||
nsFrameScriptExecutor::DidCreateCx()
|
||||
nsFrameScriptExecutor::DidCreateGlobal()
|
||||
{
|
||||
NS_ASSERTION(mCx, "Should have mCx!");
|
||||
NS_ASSERTION(mGlobal, "Should have mGlobal!");
|
||||
if (!sCachedScripts) {
|
||||
sCachedScripts =
|
||||
new nsDataHashtable<nsStringHashKey, nsFrameJSScriptExecutorHolder*>;
|
||||
|
@ -1139,7 +1139,7 @@ nsFrameScriptExecutor::InitTabChildGlobalInternal(nsISupports* aScope,
|
|||
// about:memory may use that information.
|
||||
xpc::SetLocationForGlobal(global, aID);
|
||||
|
||||
DidCreateCx();
|
||||
DidCreateGlobal();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -292,7 +292,7 @@ protected:
|
|||
{ MOZ_COUNT_CTOR(nsFrameScriptExecutor); }
|
||||
~nsFrameScriptExecutor()
|
||||
{ MOZ_COUNT_DTOR(nsFrameScriptExecutor); }
|
||||
void DidCreateCx();
|
||||
void DidCreateGlobal();
|
||||
// Call this when you want to destroy mCx.
|
||||
void DestroyCx();
|
||||
void LoadFrameScriptInternal(const nsAString& aURL);
|
||||
|
|
Загрузка…
Ссылка в новой задаче