diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 00:27:47 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 00:27:47 +0000 |
commit | dc0aaeaa225eecc6f51db34df00ebcf6cff1783c (patch) | |
tree | 9c9203219dedcaa8febb0fc3d430eab551c6d215 /media/base/yuv_row_win.cc | |
parent | 5ac8b8fb88572ac5f0a910057d8e9baa4054c3c5 (diff) | |
download | chromium_src-dc0aaeaa225eecc6f51db34df00ebcf6cff1783c.zip chromium_src-dc0aaeaa225eecc6f51db34df00ebcf6cff1783c.tar.gz chromium_src-dc0aaeaa225eecc6f51db34df00ebcf6cff1783c.tar.bz2 |
NTP: Add work around for layout bug that some users are hitting.
In some rare cases the reported window.innerWidth and the media query reports different widths. This is most likely due to some timing issues. This work around keeps track of what layout mode we are using (wasSmallGrid) and when we get the data as well as on DOMContentLoaded we double check to ensure that the mode is correct and if not we do another layout. So in worst case we do one more layout in the case where the layout was wrong.
BUG=25329
TEST=I haven't been able to repro so when testing this I introduced the *wrong* case manually in code.
Review URL: http://codereview.chromium.org/1650008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/yuv_row_win.cc')
0 files changed, 0 insertions, 0 deletions