mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1148833 part 2 - Makes sure gLogModule is initialized by calling GetLogModuleInfo(). r=roc
This commit is contained in:
parent
c5c104d465
commit
2841011c3a
@ -8961,7 +8961,7 @@ GetTagName(nsFrame* aFrame, nsIContent* aContent, int aResultSize,
|
||||
void
|
||||
nsFrame::Trace(const char* aMethod, bool aEnter)
|
||||
{
|
||||
if (NS_FRAME_LOG_TEST(gLogModule, NS_FRAME_TRACE_CALLS)) {
|
||||
if (NS_FRAME_LOG_TEST(GetLogModuleInfo(), NS_FRAME_TRACE_CALLS)) {
|
||||
char tagbuf[40];
|
||||
GetTagName(this, mContent, sizeof(tagbuf), tagbuf);
|
||||
PR_LogPrint("%s: %s %s", tagbuf, aEnter ? "enter" : "exit", aMethod);
|
||||
@ -8971,7 +8971,7 @@ nsFrame::Trace(const char* aMethod, bool aEnter)
|
||||
void
|
||||
nsFrame::Trace(const char* aMethod, bool aEnter, nsReflowStatus aStatus)
|
||||
{
|
||||
if (NS_FRAME_LOG_TEST(gLogModule, NS_FRAME_TRACE_CALLS)) {
|
||||
if (NS_FRAME_LOG_TEST(GetLogModuleInfo(), NS_FRAME_TRACE_CALLS)) {
|
||||
char tagbuf[40];
|
||||
GetTagName(this, mContent, sizeof(tagbuf), tagbuf);
|
||||
PR_LogPrint("%s: %s %s, status=%scomplete%s",
|
||||
@ -8984,7 +8984,7 @@ nsFrame::Trace(const char* aMethod, bool aEnter, nsReflowStatus aStatus)
|
||||
void
|
||||
nsFrame::TraceMsg(const char* aFormatString, ...)
|
||||
{
|
||||
if (NS_FRAME_LOG_TEST(gLogModule, NS_FRAME_TRACE_CALLS)) {
|
||||
if (NS_FRAME_LOG_TEST(GetLogModuleInfo(), NS_FRAME_TRACE_CALLS)) {
|
||||
// Format arguments into a buffer
|
||||
char argbuf[200];
|
||||
va_list ap;
|
||||
|
Loading…
Reference in New Issue
Block a user