Merge "Partial rollback of I9ebc92dc"

This commit is contained in:
John Reck
2011-09-01 13:46:03 -07:00
committed by Android (Google) Code Review

View File

@@ -4007,12 +4007,9 @@ public class WebView extends AbsoluteLayout
// state.
// If mNativeClass is 0, we should not reach here, so we do not
// need to check it again.
if (mDrawCursorRing && drawRings) {
// Only update if we are actually going to use the result
nativeRecordButtons(hasFocus() && hasWindowFocus(),
mTouchMode == TOUCH_SHORTPRESS_START_MODE
|| mTrackballDown || mGotCenterDown, false);
}
nativeRecordButtons(hasFocus() && hasWindowFocus(),
(mTouchMode == TOUCH_SHORTPRESS_START_MODE && !USE_WEBKIT_RINGS)
|| mTrackballDown || mGotCenterDown, false);
drawCoreAndCursorRing(canvas, mBackgroundColor,
mDrawCursorRing && drawRings);
}