Files
palemoon27/layout/base/LayoutLogging.cpp
T
roytam1 de52ef4061 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1181920. Persist XUL attributes off a scriptrunner. r=peterv (4b29b8efa)
- Bug 1156100 - Mark XULDocument::CachedChromeStreamListener::mDocument as an nsRefPtr; r=baku (0a5b7bd5b)
- Bug 1168823 - Repair XML syntax highlighting. r=jst (83fd915e3)
- Bug 1157059 - Avoid calling AddRef on the pointer enclosed in an nsCOMPtr in nsBindingManager::DoProcessAttachedQueue(); r=baku (6e13d9beb)
- Bug 1177816 - Dump a message when the service worker for test_request_context receives an unexpected context value; r=baku (b44d39184)
- Bug 1168903 part 1: Give nsSMILValue a move constructor & move reassignment operator. r=birtles (ba7ee0bed)
- Bug 1168903 part 2: Use Move() instead of nsSMILValue::Swap() to populate outparams from temp variables in SMIL functions. r=birtles (a4858c958)
- Bug 1180048 - Switch warning about having a zero length axis to a LAYOUT_WARNING. r=dholbert (19d405908)
-  Bug 1175289 - Part 1: Add LAYOUT_WARNING. r=mats (fd4d1bdd9)
- Bug 1175289 - Part 2: Disable "Subdocument container has no frame" warning by default. r=mats (8ce582bf5)
2021-12-30 09:09:43 +08:00

44 lines
1.2 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Chromium headers must come before Mozilla headers.
#include "base/process_util.h"
#include "LayoutLogging.h"
PRLogModuleInfo* GetLayoutLog()
{
static PRLogModuleInfo* log = nullptr;
if (!log) {
log = PR_NewLogModule("layout");
}
return log;
}
namespace mozilla {
namespace detail {
void LayoutLogWarning(const char* aStr, const char* aExpr,
const char* aFile, int32_t aLine)
{
if (aExpr) {
MOZ_LOG(GetLayoutLog(),
mozilla::LogLevel::Warning,
("[%d] WARNING: %s: '%s', file %s, line %d",
base::GetCurrentProcId(),
aStr, aExpr, aFile, aLine));
} else {
MOZ_LOG(GetLayoutLog(),
mozilla::LogLevel::Warning,
("[%d] WARNING: %s: file %s, line %d",
base::GetCurrentProcId(),
aStr, aFile, aLine));
}
}
} // namespace detail
} // namespace mozilla