mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
de52ef4061
- 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)
44 lines
1.2 KiB
C++
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
|