Bug 997101 - Remove the SetCSSViewport call in TabChild::Observe that needlessly sets a default value that results in a lot of expensive reflow. r=kats

This commit is contained in:
"Kan-Ru Chen (陳侃如)" 2014-09-06 18:02:07 +01:00
Родитель 99f0dac500
Коммит f49652d629
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -879,11 +879,6 @@ TabChild::Observe(nsISupports *aSubject,
mContentDocumentIsDisplayed = true;
// Reset CSS viewport and zoom to default on new page, then
// calculate them properly using the actual metadata from the
// page.
SetCSSViewport(kDefaultViewportSize);
// In some cases before-first-paint gets called before
// RecvUpdateDimensions is called and therefore before we have an
// mInnerSize value set. In such cases defer initializing the viewport