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

Commit 4527a8d6 authored by George Mount's avatar George Mount
Browse files

Consider fixed layers when scrolling the edit box.

 Bug 6147580
 Webkit Change: I810891decf0bad682e90f29f0f65c6b765b7d6d6

Change-Id: Idaa538824e611acd64eb5a4ccb7866d3c978a077
parent ba910bc0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5574,6 +5574,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
        if (visibleRect.contains(mEditTextContentBounds)) {
            return; // no need to scroll
        }
        nativeFindMaxVisibleRect(mNativeClass, mEditTextLayerId, visibleRect);
        syncSelectionCursors();
        final int buffer = Math.max(1, viewToContentDimension(EDIT_RECT_BUFFER));
        Rect showRect = new Rect(
@@ -8609,4 +8610,6 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
            Rect rect);
    // Returns 1 if a layer sync is needed, else 0
    private static native int nativeSetHwAccelerated(int instance, boolean hwAccelerated);
    private static native void nativeFindMaxVisibleRect(int instance, int layerId,
            Rect visibleContentRect);
}