Web Inspector: Zoom never goes back to 100% size
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 22:50:47 +0000 (22:50 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 22:50:47 +0000 (22:50 +0000)
commite532ab6dab22e97b5da70b7dbb7bec4c624d1b52
tree6f17d6bb0fe098fbfbca78d77a03b677e9727dfb
parentd2614012fa72d09b05e8be4835958c4390b3fd1f
Web Inspector: Zoom never goes back to 100% size
https://bugs.webkit.org/show_bug.cgi?id=150637

Add and subtract 20% from the zoom level so the zoom factor can return
to the 1 starting zoom factor if you go back the other direction.

Reviewed by Joseph Pecoraro.

* UserInterface/Base/Main.js:
(WebInspector._increaseZoom): Add 0.2 instead of multiplying 1.2.
(WebInspector._decreaseZoom): Subtract 0.2 instead of multiplying 0.8.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Main.js