diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-31 23:30:59 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-31 23:30:59 +0000 |
commit | 0dea3ea8bee2b135b079d8b75c9e9fb7f2fa82a8 (patch) | |
tree | 1ad235e23d71bb494c8b67588b2798f713810cdd /chrome/renderer/render_view.cc | |
parent | c90e16ce1fbc9abc1a1a58766e0418263ed28a84 (diff) | |
download | chromium_src-0dea3ea8bee2b135b079d8b75c9e9fb7f2fa82a8.zip chromium_src-0dea3ea8bee2b135b079d8b75c9e9fb7f2fa82a8.tar.gz chromium_src-0dea3ea8bee2b135b079d8b75c9e9fb7f2fa82a8.tar.bz2 |
Use WebConsoleMessage instead of ConsoleMessageLevel.
R=dglazkov
Review URL: http://codereview.chromium.org/57073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12916 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r-- | chrome/renderer/render_view.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 29f6340..d2c052c 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -85,6 +85,7 @@ using base::TimeDelta; using webkit_glue::WebAccessibility; +using WebKit::WebConsoleMessage; using WebKit::WebScriptSource; //----------------------------------------------------------------------------- @@ -465,7 +466,7 @@ void RenderView::PrintPage(const ViewMsg_PrintPage_Params& params, DCHECK(hdc); skia::PlatformDeviceWin::InitializeDC(hdc); // Since WebKit extends the page width depending on the magical shrink - // factor we make sure the canvas covers the worst case scenario + // factor we make sure the canvas covers the worst case scenario // (x2.0 currently). PrintContext will then set the correct clipping region. int size_x = static_cast<int>(canvas_size.width() * params.params.max_shrink); int size_y = static_cast<int>(canvas_size.height() * @@ -2464,13 +2465,10 @@ void RenderView::OnCSSInsertRequest(const std::wstring& frame_xpath, } void RenderView::OnAddMessageToConsole(const std::wstring& frame_xpath, - const std::wstring& msg, - ConsoleMessageLevel level) { + const WebConsoleMessage& message) { WebFrame* web_frame = GetChildFrame(frame_xpath); - if (!web_frame) - return; - - web_frame->AddMessageToConsole(msg, level); + if (web_frame) + web_frame->AddMessageToConsole(message); } #if defined(OS_WIN) |