Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a22a011f authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Don't send scroll events in case of new picture from webkit."

parents 5381b467 c566185c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7213,8 +7213,13 @@ public class WebView extends AbsoluteLayout
                    // received in the fixed dimension.
                    final boolean updateLayout = viewSize.x == mLastWidthSent
                            && viewSize.y == mLastHeightSent;
                    // Don't send scroll event for picture coming from webkit,
                    // since the new picture may cause a scroll event to override
                    // the saved history scroll position.
                    mSendScrollEvent = false;
                    recordNewContentSize(draw.mContentSize.x,
                            draw.mContentSize.y, updateLayout);
                    mSendScrollEvent = true;
                    if (DebugFlags.WEB_VIEW) {
                        Rect b = draw.mInvalRegion.getBounds();
                        Log.v(LOGTAG, "NEW_PICTURE_MSG_ID {" +