Merge "optional flag to enable tracker debugging"
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 2c716b3..b7346309 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -203,6 +203,8 @@
         implements ViewTreeObserver.OnGlobalFocusChangeListener,
         ViewGroup.OnHierarchyChangeListener {
 
+    // enable debug output for drag trackers
+    private static final boolean DEBUG_DRAG_TRACKER;
     // if AUTO_REDRAW_HACK is true, then the CALL key will toggle redrawing
     // the screen all-the-time. Good for profiling our drawing code
     static private final boolean AUTO_REDRAW_HACK = false;
@@ -3967,7 +3969,7 @@
             mMinDY = -viewTop;
             mMaxDY = docBottom - viewBottom;
 
-            if (DebugFlags.DRAG_TRACKER) {
+            if (DebugFlags.DRAG_TRACKER || DEBUG_DRAG_TRACKER) {
                 Log.d(DebugFlags.DRAG_TRACKER_LOGTAG, " dragtracker y= " + y +
                       " up/down= " + mMinDY + " " + mMaxDY);
             }
@@ -4004,7 +4006,7 @@
             if (mCurrStretchX != sx || mCurrStretchY != sy) {
                 mCurrStretchX = sx;
                 mCurrStretchY = sy;
-                if (DebugFlags.DRAG_TRACKER) {
+                if (DebugFlags.DRAG_TRACKER || DEBUG_DRAG_TRACKER) {
                     Log.d(DebugFlags.DRAG_TRACKER_LOGTAG, "---- stretch " + sx +
                           " " + sy);
                 }
@@ -4015,7 +4017,7 @@
         }
 
         public void stopDrag() {
-            if (DebugFlags.DRAG_TRACKER) {
+            if (DebugFlags.DRAG_TRACKER || DEBUG_DRAG_TRACKER) {
                 Log.d(DebugFlags.DRAG_TRACKER_LOGTAG, "----- stopDrag");
             }
             mProxy.onStopDrag();
@@ -4052,7 +4054,7 @@
                 canvas.restoreToCount(count);
                 return true;
             }
-            if (DebugFlags.DRAG_TRACKER) {
+            if (DebugFlags.DRAG_TRACKER || DEBUG_DRAG_TRACKER) {
                 Log.d(DebugFlags.DRAG_TRACKER_LOGTAG, " -- draw false " +
                       mCurrStretchX + " " + mCurrStretchY);
             }
@@ -4067,7 +4069,7 @@
             canvas.translate(-sx, -sy);
             drawContent(canvas);
 
-            if (DebugFlags.DRAG_TRACKER) {
+            if (DebugFlags.DRAG_TRACKER || DEBUG_DRAG_TRACKER) {
                 Log.d(DebugFlags.DRAG_TRACKER_LOGTAG, "--- buildBitmap " + sx +
                       " " + sy + " " + w + " " + h);
             }