Backed out changeset eba5d7aa80b0 (bug 997101) for causing frequent B2G layout/reftests/svg/sizing reftest failures.

This commit is contained in:
Ryan VanderMeulen 2014-07-09 14:24:37 -04:00
parent 8d6946d993
commit e86f377c1e

View File

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