Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1573343 - Always create the back buffer sized to the widget's cli…
…ent size. r=mattwoodrow This should be equivalent to what we had before but clearer. Before this patch, we would reallocate the back buffer if - the back buffer was larger than the client size (meaning the window had shrunk) or - the invalid region didn't fit in the back buffer. Whenever the window is resized, we have a frame where the invalid region covers the entire window, and thus size would be equal clientSize in that frame. So effectively, the back buffer size was always kept in sync with the client size. Differential Revision: https://phabricator.services.mozilla.com/D41671 --HG-- extra : moz-landing-system : lando
- Loading branch information