• Alex Moshchuk's avatar
    Force visual properties to be synced before cross-process postMessage. · fb979539
    Alex Moshchuk authored
    This CL fixes a reordering problem between sizing changes and
    cross-process postMessages.  Previously, it was possible for a frame
    to resize its child frame (forcing layout to guarantee the sizing IPC
    is sent), then send it a postMessage, and have the message delivered
    before the sizing change.  This is because the browser process might
    throttle resizes, in particular if there had been another pending
    resize which hadn't been acked by the (child) renderer.  To fix this,
    this CL flushes any pending sizing info to the child renderer before
    forwarding the postMessage.
    
    Bug: 822958, 828529
    Change-Id: I49252ed6f91b5c25be96b210fd3e3c6248f14da6
    Reviewed-on: https://chromium-review.googlesource.com/1063310
    Commit-Queue: Fady Samuel <fsamuel@chromium.org>
    Commit-Queue: Charlie Reis <creis@chromium.org>
    Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
    Reviewed-by: default avatarCharlie Reis <creis@chromium.org>
    Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#560176}
    fb979539
render_widget_host_impl.cc 113 KB