OSDN Git Service

Fix compilation error when debug_nav_ui is turned on.
authorShimeng (Simon) Wang <swang@google.com>
Thu, 26 May 2011 00:59:48 +0000 (17:59 -0700)
committerShimeng (Simon) Wang <swang@google.com>
Thu, 26 May 2011 01:22:07 +0000 (18:22 -0700)
Change-Id: I554f12a3d1ee2baa04288467e6fd46b1cdce9f9c

Source/WebKit/android/nav/CachedRoot.cpp

index e841683..5c16c91 100644 (file)
@@ -1158,8 +1158,10 @@ const CachedNode* CachedRoot::findAt(const WebCore::IntRect& rect,
 #if DEBUG_NAV_UI
     DBG_NAV_LOGD("rect=(%d,%d,w=%d,h=%d) xy=(%d,%d)", rect.x(), rect.y(),
         rect.width(), rect.height(), *x, *y);
+#if DUMP_NAV_CACHE
     if (mRootLayer) CachedLayer::Debug::printRootLayerAndroid(mRootLayer);
 #endif
+#endif
     int best = INT_MAX;
     bool inside = false;
     (const_cast<CachedRoot*>(this))->resetClippedOut();