more debug logging draft
authorJan Henning <jh+bugzilla@buttercookie.de>
Sun, 25 Dec 2016 19:30:10 +0100
changeset 453933 4f9050aaefe5125477c992c550ba9210217b2f62
parent 453932 3a2b201c66c02eb973cfa1e504194a9e75173109
child 453934 f2c33e49f6c5b58ecd76f811b4b6a430e83f3cd5
push id39769
push usermozilla@buttercookie.de
push dateMon, 26 Dec 2016 18:12:31 +0000
milestone53.0a1
more debug logging MozReview-Commit-ID: q2WTv0hEqP
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -10973,31 +10973,34 @@ nsIPresShell::FontSizeInflationEnabled()
 
 void
 nsIPresShell::HandleGlobalZoom()
 {
   if (nsLayoutUtils::BrowserGlobalZoom() == 0) {
     return;
   }
 
+  PRES_LOG("%p: applying GlobalZoom\n", this);
   float zoomFactor = nsLayoutUtils::BrowserGlobalZoom() / 100.0f;
 
   MOZ_ASSERT(mDocument, "our document should not be null");
+  PRES_LOG("%p: is synthetic document: %s\n", this, mDocument->IsSyntheticDocument()?"true":"false");
 
   if (!mDocIsFontSizeInflationEligible && !(mDocument->IsSyntheticDocument())) {
     SetGlobalZoom(zoomFactor);
   } else {
     SetGlobalZoom(1.0f);
   }
 }
 
 void
 nsIPresShell::SetGlobalZoom(const float& aZoomFactor)
 {
   MOZ_ASSERT(mPresContext, "our pres context should not be null");
+  PRES_LOG("%p: SetGlobalZoom: %f\n", this, aZoomFactor);
 
   if (nsLayoutUtils::BrowserGlobalZoomFull()) {
     mPresContext->SetFullZoom(aZoomFactor);
     mPresContext->SetTextZoom(1.0f);
   } else {
     mPresContext->SetFullZoom(1.0f);
     mPresContext->SetTextZoom(aZoomFactor);
   }