Bug 150637 - Web Inspector: Zoom never goes back to 100% size
Summary: Web Inspector: Zoom never goes back to 100% size
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-10-28 14:37 PDT by Timothy Hatcher
Modified: 2015-10-28 15:51 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.84 KB, patch)
2015-10-28 14:55 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2015-10-28 14:37:24 PDT
If you use Command-Plus or Command-Minus you can never get back to 100% scale unless you close and reopen the Inspector.

This happens because we scale by multiplying the current zoom by a percentage. That is not undoable by doing the reverse. Instead we should add or subtract from the current zoom level.
Comment 1 Radar WebKit Bug Importer 2015-10-28 14:37:42 PDT
<rdar://problem/23303488>
Comment 2 Timothy Hatcher 2015-10-28 14:55:24 PDT
Created attachment 264252 [details]
Patch
Comment 3 Joseph Pecoraro 2015-10-28 15:05:46 PDT
Comment on attachment 264252 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2015-10-28 15:51:34 PDT
Comment on attachment 264252 [details]
Patch

Clearing flags on attachment: 264252

Committed r191697: <http://trac.webkit.org/changeset/191697>
Comment 5 WebKit Commit Bot 2015-10-28 15:51:38 PDT
All reviewed patches have been landed.  Closing bug.