diff --git a/mozilla/xpfe/browser/public/nsIBrowserInstance.idl b/mozilla/xpfe/browser/public/nsIBrowserInstance.idl
index 80b97a23957..0bdf9f2cfbc 100644
--- a/mozilla/xpfe/browser/public/nsIBrowserInstance.idl
+++ b/mozilla/xpfe/browser/public/nsIBrowserInstance.idl
@@ -53,6 +53,7 @@ interface nsIBrowserInstance : nsISupports {
void init();
void setContentWindow( in nsIDOMWindow aWindow );
void setWebShellWindow( in nsIDOMWindow aWindow );
+ void setTextZoom( in float aTextZoom );
void SetDocumentCharset(in wstring charset);
// File.
diff --git a/mozilla/xpfe/browser/resources/content/navigator.js b/mozilla/xpfe/browser/resources/content/navigator.js
index aab1ed5c904..a747dea46db 100644
--- a/mozilla/xpfe/browser/resources/content/navigator.js
+++ b/mozilla/xpfe/browser/resources/content/navigator.js
@@ -46,6 +46,7 @@ catch (ex) {
var overLink = null;
var explicitURL = false;
var statusTextFld = null;
+ var textZoom = 1.0;
function UpdateHistory(event)
@@ -801,6 +802,17 @@ function BrowserEditBookmarks()
}
}
+ function BrowserChangeTextZoom(aChange)
+ {
+ if (appCore != null) {
+ textZoom += (aChange * 0.1);
+ if (textZoom < 0.1) {
+ textZoom = 0.1;
+ }
+ appCore.setTextZoom(textZoom);
+ }
+ }
+
function BrowserSetDefaultCharacterSet(aCharset)
{
if (appCore != null) {
diff --git a/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul b/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul
index 06367844bd2..29eeb9c9547 100644
--- a/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul
+++ b/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul
@@ -51,6 +51,14 @@ Contributor(s): ______________________________________. -->