diff options
author | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-27 15:29:21 +0000 |
---|---|---|
committer | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-27 15:29:21 +0000 |
commit | dc0fd43f60f29a9167f90cf1559ce1adc17d9969 (patch) | |
tree | b6bf220101ad2d0c3429722ba3ffa7f74c337583 /android_webview | |
parent | c9537e88a64b1bd73195f0888feed2f1555d5ca1 (diff) | |
download | chromium_src-dc0fd43f60f29a9167f90cf1559ce1adc17d9969.zip chromium_src-dc0fd43f60f29a9167f90cf1559ce1adc17d9969.tar.gz chromium_src-dc0fd43f60f29a9167f90cf1559ce1adc17d9969.tar.bz2 |
fix flashing bottom gray bar when navigating away from NTP w/ unpinned bookmark bar
cause:
- when NTP has unpinned bmb, the web contents takes up the remaining height of the tab contents area.
- when navigating away from NTP, unpinned bmb disappears, so the web contents take up the entire tab contents area, i.e. taller than when on NTP.
- this resize of web contents view causes a flashing bottom gray bar after the NTP contents are cleared and before the new page contents are completely painted.
fix is to prevent any resizing, and hence re-layout, of the new page contents:
- add a method to WebContentsDelegate to allow size specification for newly-created render views.
- WebContentsImpl calls this method when creating render views and updating their sizes.
- this prevents render views from being created at a default size only to be resized immediately.
- also added browser_tests for browser and content
BUG=264207
TEST=verify per bug rpt
Review URL: https://chromiumcodereview.appspot.com/21843003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
0 files changed, 0 insertions, 0 deletions