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

Commit 2ff8cc24 authored by Ben Murdoch's avatar Ben Murdoch Committed by Android (Google) Code Review
Browse files

Merge "Clear the WebView picture when a new load starts."

parents 130f62ab a62b9632
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -410,6 +410,7 @@ class BrowserFrame extends Handler {
                mCommitted = false;
                // remove pending draw to block update until mFirstLayoutDone is
                // set to true in didFirstLayout()
                mWebViewCore.clearContent();
                mWebViewCore.removeMessages(WebViewCore.EventHub.WEBKIT_DRAW);
            }
        }
+8 −1
Original line number Diff line number Diff line
@@ -497,6 +497,13 @@ public final class WebViewCore {
        message.sendToTarget();
    }

    /**
     * Clear the picture set. To be called only on the WebCore thread.
     */
    /* package */ void clearContent() {
        nativeClearContent();
    }

    //-------------------------------------------------------------------------
    // JNI methods
    //-------------------------------------------------------------------------
@@ -1560,7 +1567,7 @@ public final class WebViewCore {
                            // Clear the view so that onDraw() will draw nothing
                            // but white background
                            // (See public method WebView.clearView)
                            nativeClearContent();
                            clearContent();
                            break;

                        case MESSAGE_RELAY: