Commit 4e1469c8 authored by levin@chromium.org's avatar levin@chromium.org

2009-07-23 Mike Fenton <mike.fenton@torchmobile.com>

        Reviewed by David Levin.

        Update WebCore/page/Console.cpp to conform to WebKit
        Style Guidelines as identified by cpplint.py.
        https://bugs.webkit.org/show_bug.cgi?id=27606

        * page/Console.cpp:
        (WebCore::printMessageSourceAndLevelPrefix):
        (WebCore::Console::profile):
        (WebCore::Console::time):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1c86c8eb
2009-07-23 Mike Fenton <mike.fenton@torchmobile.com>
Reviewed by David Levin.
Update WebCore/page/Console.cpp to conform to WebKit
Style Guidelines as identified by cpplint.py.
https://bugs.webkit.org/show_bug.cgi?id=27606
* page/Console.cpp:
(WebCore::printMessageSourceAndLevelPrefix):
(WebCore::Console::profile):
(WebCore::Console::time):
2009-07-23 Simon Hausmann <simon.hausmann@nokia.com>
Reviewed by Holger Freyther.
......
......@@ -29,8 +29,8 @@
#include "config.h"
#include "Console.h"
#include "ChromeClient.h"
#include "CString.h"
#include "ChromeClient.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameTree.h"
......@@ -90,48 +90,48 @@ static void printMessageSourceAndLevelPrefix(MessageSource source, MessageLevel
{
const char* sourceString;
switch (source) {
case HTMLMessageSource:
sourceString = "HTML";
break;
case WMLMessageSource:
sourceString = "WML";
break;
case XMLMessageSource:
sourceString = "XML";
break;
case JSMessageSource:
sourceString = "JS";
break;
case CSSMessageSource:
sourceString = "CSS";
break;
case OtherMessageSource:
sourceString = "OTHER";
break;
default:
ASSERT_NOT_REACHED();
sourceString = "UNKNOWN";
break;
case HTMLMessageSource:
sourceString = "HTML";
break;
case WMLMessageSource:
sourceString = "WML";
break;
case XMLMessageSource:
sourceString = "XML";
break;
case JSMessageSource:
sourceString = "JS";
break;
case CSSMessageSource:
sourceString = "CSS";
break;
case OtherMessageSource:
sourceString = "OTHER";
break;
default:
ASSERT_NOT_REACHED();
sourceString = "UNKNOWN";
break;
}
const char* levelString;
switch (level) {
case TipMessageLevel:
levelString = "TIP";
break;
case LogMessageLevel:
levelString = "LOG";
break;
case WarningMessageLevel:
levelString = "WARN";
break;
case ErrorMessageLevel:
levelString = "ERROR";
break;
default:
ASSERT_NOT_REACHED();
levelString = "UNKNOWN";
break;
case TipMessageLevel:
levelString = "TIP";
break;
case LogMessageLevel:
levelString = "LOG";
break;
case WarningMessageLevel:
levelString = "WARN";
break;
case ErrorMessageLevel:
levelString = "ERROR";
break;
default:
ASSERT_NOT_REACHED();
levelString = "UNKNOWN";
break;
}
printf("%s %s:", sourceString, levelString);
......@@ -267,7 +267,7 @@ void Console::profile(const JSC::UString& title, ScriptCallStack* callStack)
return;
InspectorController* controller = page->inspectorController();
// FIXME: log a console message when profiling is disabled.
// FIXME: log a console message when profiling is disabled.
if (!controller->profilerEnabled())
return;
......@@ -305,7 +305,7 @@ void Console::profileEnd(const JSC::UString& title, ScriptCallStack* callStack)
}
#endif
void Console::time(const String& title)
{
Page* page = this->page();
......@@ -316,7 +316,7 @@ void Console::time(const String& title)
// undefined for timing functions
if (title.isNull())
return;
page->inspectorController()->startTiming(title);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment