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

Commit 82aa2f5e authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Remove obsolete flags from WebViewCore and WebView

Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were
part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore.  In WebView,
do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the
receiver does not care about it.
parent 2f1d60cd
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3310,9 +3310,7 @@ public class WebView extends AbsoluteLayout
            // coordinates should be in content coordinates.
            if (nativeCursorIntersects(visibleRect)) {
                nativeSetFollowedLink(true);
                mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE,
                        EventHub.BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, 0,
                        cursorData());
                mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE, cursorData());
                playSoundEffect(SoundEffectConstants.CLICK);
                return true;
            } else if (nativeHasCursorNode()) {
+0 −4
Original line number Diff line number Diff line
@@ -658,10 +658,6 @@ final class WebViewCore {
        // private message ids
        private static final int DESTROY =     200;

        // flag values passed to message SET_FINAL_FOCUS
        static final int NO_FOCUS_CHANGE_BLOCK = 0;
        static final int BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP = 1;

        // Private handler for WebCore messages.
        private Handler mHandler;
        // Message queue for containing messages before the WebCore thread is