From 51d80aa98c32b8e419622c627d1f1c4f38af9a27 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Wed, 27 Mar 2002 03:32:41 +0000 Subject: [PATCH] Ensure that text zoom persisted from a previous page is applied to frames. Patch from Tom Mraz . r=dbaron sr=jag a=scc --- docshell/base/nsDocShell.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index cc28c9ed9c54..a84a9ce2673a 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -1931,6 +1931,7 @@ nsDocShell::AddChild(nsIDocShellTreeItem * aChild) // Do some docShell Specific stuff. nsXPIDLString defaultCharset; nsXPIDLString forceCharset; + float textZoom = 1.0; NS_ENSURE_TRUE(mContentViewer, NS_ERROR_FAILURE); nsCOMPtr muDV = @@ -1942,6 +1943,9 @@ nsDocShell::AddChild(nsIDocShellTreeItem * aChild) NS_ENSURE_SUCCESS(muDV-> GetForceCharacterSet(getter_Copies(forceCharset)), NS_ERROR_FAILURE); + NS_ENSURE_SUCCESS(muDV-> + GetTextZoom(&textZoom), + NS_ERROR_FAILURE); } nsCOMPtr childCV; NS_ENSURE_SUCCESS(childAsDocShell-> @@ -1955,6 +1959,8 @@ nsDocShell::AddChild(nsIDocShellTreeItem * aChild) NS_ERROR_FAILURE); NS_ENSURE_SUCCESS(childmuDV->SetForceCharacterSet(forceCharset), NS_ERROR_FAILURE); + NS_ENSURE_SUCCESS(childmuDV->SetTextZoom(textZoom), + NS_ERROR_FAILURE); } }