From 4754e4aabbf9488828d86ecc774ebed768d24053 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 19 May 2016 14:32:16 -0700 Subject: [PATCH] Add zoomFactor to guest params --- lib/browser/guest-view-manager.js | 1 + lib/renderer/web-view/web-view.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/browser/guest-view-manager.js b/lib/browser/guest-view-manager.js index 28768fb128dc..3aae606c4465 100644 --- a/lib/browser/guest-view-manager.js +++ b/lib/browser/guest-view-manager.js @@ -179,6 +179,7 @@ var attachGuest = function (embedder, elementInstanceId, guestInstanceId, params guestInstanceId: guestInstanceId, nodeIntegration: (ref1 = params.nodeintegration) != null ? ref1 : false, plugins: params.plugins, + zoomFactor: params.zoomFactor, webSecurity: !params.disablewebsecurity, blinkFeatures: params.blinkfeatures } diff --git a/lib/renderer/web-view/web-view.js b/lib/renderer/web-view/web-view.js index 605f3be536be..1636d560ee53 100644 --- a/lib/renderer/web-view/web-view.js +++ b/lib/renderer/web-view/web-view.js @@ -223,7 +223,8 @@ var WebViewImpl = (function () { var attribute, attributeName, css, elementRect, params, ref1 params = { instanceId: this.viewInstanceId, - userAgentOverride: this.userAgentOverride + userAgentOverride: this.userAgentOverride, + zoomFactor: webFrame.getZoomFactor() } ref1 = this.attributes for (attributeName in ref1) {