OOP PDF - Update zoom factor to fall within range
commit4271e16b743b649e0d584dcfb90c5ae976864ce2
authorn.bansal@samsung.com <n.bansal@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 12:18:59 +0000 (22 12:18 +0000)
committern.bansal@samsung.com <n.bansal@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 12:20:18 +0000 (22 12:20 +0000)
treedbdd5dc03d38bb748db0ca2b90f85c3c6bf3fefe
parentce66a65cb7a24248419e475fccb2dce991d691bb
OOP PDF - Update zoom factor to fall within range

Currently setZoom() doesn't check whether zoom factor provided
falls within range or not. It is possible to pass big zoom level
through 'zoom' open pdf parameter which can make browser unresponsive.

This patch updates the zoom factor provided in setZoom() to fall
within range.

BUG=303491

Review URL: https://codereview.chromium.org/475933004

Cr-Commit-Position: refs/heads/master@{#291387}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291387 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/resources/pdf/viewport.js