mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 22:53:28 +00:00
90fdf91e10
- pointer style (4cbc8f697) - Bug 1173858 - Part 1: Add log module for layout. r=dholbert Add a log module for use by layout. An analog to NS_WARN_IF_FALSE is provided that has the same behavior as NS_WARN_IF_FALSE: it's debug only and emits a message prefixed with '[pid] WARNING', includes the condition being checked, file name and line number. (3aabc4c8f) - Bug 1173858 - Part 2: Use LAYOUT_WARN_IF_FALSE to silence some verbose layout warnings by default. r=dholbert (2a7efec8f) - Bug 1173858 - Part 3 - Reindent blocks that we've converted to use LAYOUT_WARN_IF_FALSE. r=dholbert (1460ed697) - pointer style (72daf612c) - Bug 1063147: Clarify comments about extensible strings. DONTBUILD r=jandem (036b9c9b4) - Bug 1145882 - Part 2/2 - Add -v and --version. r=evilpie (8b2d03df1) - Bug 1001975 - Enable -Wuninitialized warnings as errors. r=glandium (b74ec63bb) - Bug 1183480 - Return old timeout value in setScriptTimeout(), r=bholley. (295a9098a) - Bug 1155393 - Port the -Wno-inline-new-delete option from configure.in to the JS configure script; r=dholbert (a2ad6fafc) - ad bug component (94bcaa0a1) - NO BUG - Fix reStructuredText warnings (584b0b97a) - missing parts of Bug 895248 - Move --enable-stdcxx-compat in build/unix/mozconfig.linux (814b5d8fb) - style and namespaces (9f6bb417d) - Bug 1136046 - Increase maximum capacity of js::HashMap and HashSet r=luke (bf1f96bc6) - pointer style (5ac65529a) - pointer style (f5623e2b7) - Bug 1139570: JS GDB pretty-printer: Add a pretty-printer for js::InterpreterRegs. DONTBUILD r=ttromey (1c642e7fe)
36 lines
949 B
C++
36 lines
949 B
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)
|
|
{
|
|
MOZ_LOG(GetLayoutLog(),
|
|
mozilla::LogLevel::Warning,
|
|
("[%d] WARNING: %s: '%s', file %s, line %d",
|
|
base::GetCurrentProcId(),
|
|
aStr, aExpr, aFile, aLine));
|
|
}
|
|
|
|
} // namespace detail
|
|
} // namespace mozilla
|