Merge "Trigger a full screen repaint when touching layers, as webkitDraw() may not generate the correct invalidations."
This commit is contained in:
committed by
Android (Google) Code Review
commit
98a5fcd895
@@ -2010,10 +2010,10 @@ public final class WebViewCore {
|
|||||||
if (nativeUpdateLayers(mLastDrawData.mBaseLayer)) {
|
if (nativeUpdateLayers(mLastDrawData.mBaseLayer)) {
|
||||||
// If anything more complex than position has been touched, let's do a full draw
|
// If anything more complex than position has been touched, let's do a full draw
|
||||||
webkitDraw();
|
webkitDraw();
|
||||||
} else {
|
|
||||||
Message.obtain(mWebView.mPrivateHandler,
|
|
||||||
WebView.INVAL_RECT_MSG_ID).sendToTarget();
|
|
||||||
}
|
}
|
||||||
|
mWebView.mPrivateHandler.removeMessages(WebView.INVAL_RECT_MSG_ID);
|
||||||
|
mWebView.mPrivateHandler.sendMessageAtFrontOfQueue(mWebView.mPrivateHandler
|
||||||
|
.obtainMessage(WebView.INVAL_RECT_MSG_ID));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void webkitDraw() {
|
private void webkitDraw() {
|
||||||
|
|||||||
Reference in New Issue
Block a user