Bug 997101 - Remove the extra SetCSSViewport call. r=kats

This commit is contained in:
"Kan-Ru Chen (陳侃如)" 2014-07-04 16:09:07 +08:00
parent 6489eebc7d
commit 25beb8762d

View File

@ -764,11 +764,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