From f0cbd309d64b60778e4ef600c74b1940ceffd0df Mon Sep 17 00:00:00 2001 From: Changhyup Jwa Date: Fri, 21 Jun 2013 21:27:44 +0900 Subject: [PATCH] Remove too much printed logs [Title] Remove too much printed logs [Issue#] N/A [Problem] Too many logs are printed on DOMWindow and PageClientImpl [Cause] DOMWindow::innerHeight(), innerWidth() and PageClientImpl::pageDidRequestScroll() can be called too much [Solution] Remove logs Change-Id: I11118cb8927a7478c51a56f1b6c30dbd8c60b21d --- Source/WebCore/page/DOMWindow.cpp | 13 ------------- Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp | 3 --- 2 files changed, 16 deletions(-) diff --git a/Source/WebCore/page/DOMWindow.cpp b/Source/WebCore/page/DOMWindow.cpp index d0c5b7e..cebba14 100644 --- a/Source/WebCore/page/DOMWindow.cpp +++ b/Source/WebCore/page/DOMWindow.cpp @@ -1135,14 +1135,7 @@ int DOMWindow::innerHeight() const // If the device height is overridden, do not include the horizontal scrollbar into the innerHeight (since it is absent on the real device). bool includeScrollbars = !InspectorInstrumentation::shouldApplyScreenHeightOverride(m_frame); - -#if ENABLE(TIZEN_DLOG_SUPPORT) - int result = view->mapFromLayoutToCSSUnits(static_cast(view->visibleContentRect(includeScrollbars).height())); - TIZEN_LOGI(" [%d]", result); - return result; -#else return view->mapFromLayoutToCSSUnits(static_cast(view->visibleContentRect(includeScrollbars).height())); -#endif } int DOMWindow::innerWidth() const @@ -1156,13 +1149,7 @@ int DOMWindow::innerWidth() const // If the device width is overridden, do not include the vertical scrollbar into the innerWidth (since it is absent on the real device). bool includeScrollbars = !InspectorInstrumentation::shouldApplyScreenWidthOverride(m_frame); -#if ENABLE(TIZEN_DLOG_SUPPORT) - int result = view->mapFromLayoutToCSSUnits(static_cast(view->visibleContentRect(includeScrollbars).width())); - TIZEN_LOGI(" [%d]", result); - return result; -#else return view->mapFromLayoutToCSSUnits(static_cast(view->visibleContentRect(includeScrollbars).width())); -#endif } int DOMWindow::screenX() const diff --git a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp index cb4b861..45116fa 100755 --- a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp +++ b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp @@ -788,9 +788,6 @@ void PageClientImpl::pageDidRequestScroll(const IntPoint& point) IntPoint newPoint = point; newPoint.scale(scaleFactor(), scaleFactor()); #if ENABLE(TIZEN_WEBKIT2_BEFORE_PAGE_RENDERED_SCROLL_POSITION) -#if ENABLE(TIZEN_DLOG_SUPPORT) - TIZEN_LOGI("scroll position: [%d, %d], [%s]", newPoint.x(), newPoint.y(), m_pageDidRendered ? "Rendered" : "Before rendered"); -#endif if (!m_pageDidRendered) m_scrollPositionBeforePageRendered = newPoint; else -- 2.7.4