[omnibox] use InvalidateLayout()/SchedulePaint() more correctly.
Some places called Layout() instead of InvalidateLayout(), which is less efficient and works poorly with layout managers. Some places did not SchedulePaint() when changing characteristics that would affect paint, e.g. text color. Some places called InvalidateLayout() or SchedulePaint() unnecessarily, e.g. after calling another function that should do these as needed. Bug: none Change-Id: Ie2cf7f01c0e1bccaf0a98365ed0e6fb63bfe7f67 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857569 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:manuk hovanesian <manukh@chromium.org> Cr-Commit-Position: refs/heads/master@{#706264}
Showing
Please register or sign in to comment