am 13934c2d: Merge "Prevent SET_SCROLL_OFFSET spam from clogging tubes" into honeycomb

* commit '13934c2d71046cdd2e7ca33528b91cb83f82dc13':
  Prevent SET_SCROLL_OFFSET spam from clogging tubes
This commit is contained in:
John Reck
2011-01-30 17:12:29 -08:00
committed by Android Git Automerger

View File

@@ -2506,6 +2506,7 @@ public class WebView extends AbsoluteLayout
// Rect.equals() checks for null input.
if (!rect.equals(mLastVisibleRectSent)) {
Point pos = new Point(rect.left, rect.top);
mWebViewCore.removeMessages(EventHub.SET_SCROLL_OFFSET);
mWebViewCore.sendMessage(EventHub.SET_SCROLL_OFFSET,
nativeMoveGeneration(), mUserScroll ? 1 : 0, pos);
mLastVisibleRectSent = rect;