• jdduke's avatar
    Reland "Be explicit about forcing TouchSelectionController updates" · da232ee4
    jdduke authored
    This change landed in r329325 but was reverted due to an
    uninitialized member variable. The issue has been fixed.
    
    Original description: ----------------------------
    
    Previously, cached values in the TouchSelectionController would be reset
    to force future selection updates. However, these cached values can
    actually be used outside of selection update calls, e.g., when force
    showing the selection from the current cached values. Instead of
    resetting the cached values, simply set a dirty bit that forces an
    update, avoiding issues when dealing with the reset values.
    
    BUG=393025
    
    Review URL: https://codereview.chromium.org/1127383007
    
    Cr-Commit-Position: refs/heads/master@{#329422}
    da232ee4
touch_selection_controller.cc 17 KB