mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-26 01:08:39 +09:00
Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElement
- Moves scripting parts of DOM into 'dom/script'
- Renames nsScript{Loader/Element} to Script{Loader/Element}
- Adjusts all callers
This commit is contained in:
parent
179fd7df8a
commit
f85b274e94
50 changed files with 554 additions and 514 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include "mozilla/dom/cache/Cache.h"
|
||||
#include "mozilla/dom/Promise.h"
|
||||
#include "mozilla/dom/PromiseWorkerProxy.h"
|
||||
#include "mozilla/dom/ScriptLoader.h"
|
||||
#include "mozilla/ipc/BackgroundUtils.h"
|
||||
#include "mozilla/ipc/PBackgroundSharedTypes.h"
|
||||
#include "nsICacheInfoChannel.h"
|
||||
|
|
@ -23,7 +24,6 @@
|
|||
#include "nsIScriptError.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsScriptLoader.h"
|
||||
#include "ServiceWorkerManager.h"
|
||||
#include "Workers.h"
|
||||
#include "nsStringStream.h"
|
||||
|
|
@ -801,9 +801,9 @@ CompareNetwork::OnStreamComplete(nsIStreamLoader* aLoader, nsISupports* aContext
|
|||
char16_t* buffer = nullptr;
|
||||
size_t len = 0;
|
||||
|
||||
rv = nsScriptLoader::ConvertToUTF16(httpChannel, aString, aLen,
|
||||
NS_LITERAL_STRING("UTF-8"), nullptr,
|
||||
buffer, len);
|
||||
rv = ScriptLoader::ConvertToUTF16(httpChannel, aString, aLen,
|
||||
NS_LITERAL_STRING("UTF-8"), nullptr,
|
||||
buffer, len);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
mManager->NetworkFinished(rv);
|
||||
return rv;
|
||||
|
|
@ -855,9 +855,9 @@ CompareCache::OnStreamComplete(nsIStreamLoader* aLoader, nsISupports* aContext,
|
|||
char16_t* buffer = nullptr;
|
||||
size_t len = 0;
|
||||
|
||||
nsresult rv = nsScriptLoader::ConvertToUTF16(nullptr, aString, aLen,
|
||||
NS_LITERAL_STRING("UTF-8"),
|
||||
nullptr, buffer, len);
|
||||
nsresult rv = ScriptLoader::ConvertToUTF16(nullptr, aString, aLen,
|
||||
NS_LITERAL_STRING("UTF-8"),
|
||||
nullptr, buffer, len);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
mManager->CacheFinished(rv, false);
|
||||
return rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue