Bug 1761432 - Part 4: Rename state accessor methods after the enum values r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D142044
This commit is contained in:
Jon Coppeard
2022-03-25 10:54:17 +00:00
parent 415fac5ab2
commit 1bb3a3fa3a
6 changed files with 13 additions and 13 deletions

View File

@@ -255,7 +255,7 @@ ScriptLoader::~ScriptLoader() {
static void CollectScriptTelemetry(ScriptLoadRequest* aRequest) {
using namespace mozilla::Telemetry;
MOZ_ASSERT(aRequest->IsLoading());
MOZ_ASSERT(aRequest->IsFetching());
// Skip this function if we are not running telemetry.
if (!CanRecordExtended()) {
@@ -509,7 +509,7 @@ nsresult ScriptLoader::StartLoad(ScriptLoadRequest* aRequest) {
}
nsresult ScriptLoader::StartClassicLoad(ScriptLoadRequest* aRequest) {
MOZ_ASSERT(aRequest->IsLoading());
MOZ_ASSERT(aRequest->IsFetching());
NS_ENSURE_TRUE(mDocument, NS_ERROR_NULL_POINTER);
aRequest->SetUnknownDataType();
@@ -3189,7 +3189,7 @@ nsresult ScriptLoader::PrepareLoadedRequest(ScriptLoadRequest* aRequest,
if (aRequest->IsCanceled()) {
return NS_BINDING_ABORTED;
}
MOZ_ASSERT(aRequest->IsLoading());
MOZ_ASSERT(aRequest->IsFetching());
CollectScriptTelemetry(aRequest);
// If we don't have a document, then we need to abort further