Remove too much printed logs
authorChanghyup Jwa <ch.jwa@samsung.com>
Fri, 21 Jun 2013 12:27:44 +0000 (21:27 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 24 Jun 2013 15:23:22 +0000 (15:23 +0000)
[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
Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index d0c5b7e..cebba14 100644 (file)
@@ -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<int>(view->visibleContentRect(includeScrollbars).height()));
-    TIZEN_LOGI(" [%d]", result);
-    return result;
-#else
     return view->mapFromLayoutToCSSUnits(static_cast<int>(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<int>(view->visibleContentRect(includeScrollbars).width()));
-    TIZEN_LOGI(" [%d]", result);
-    return result;
-#else
     return view->mapFromLayoutToCSSUnits(static_cast<int>(view->visibleContentRect(includeScrollbars).width()));
-#endif
 }
 
 int DOMWindow::screenX() const
index cb4b861..45116fa 100755 (executable)
@@ -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