WebKit:
Reviewed by Kevin.
- WebKit support for <rdar://problem/
3795701> Menu item/keyboard shortcut to
restore text zoom to normal
* WebView.subproj/WebView.m:
(-[WebView validateUserInterfaceItem:]):
validate makeTextStandardSize by calling canMakeTextStandardSize
(-[WebView canMakeTextStandardSize]):
new method, returns YES unless text size multiplier is currently 1
(-[WebView makeTextStandardSize:]):
new method, sets text size multiplier to 1
* WebView.subproj/WebViewPrivate.h:
add makeTextStandardSize: and canMakeTextStandardSize to pending public category
WebBrowser:
Reviewed by Chris.
- fixed <rdar://problem/
3795701> Menu item/keyboard shortcut to restore text zoom to normal
* BrowserDocument.h: added -makeTextStandardSize:
* BrowserDocument.m:
(-[BrowserDocument makeTextStandardSize:]):
call through to webview
(-[BrowserDocument validateUserInterfaceItem:]):
call through to webview
* BrowserWebController.m:
(-[BrowserWebView canMakeTextStandardSize]):
new method, special case bookmarks view, as with other text size methods
(-[BrowserWebView makeTextStandardSize:]):
new method, bail out if canMakeTextStandardSize fails, as with other text size methods
* BrowserWindowController.h: added -makeTextStandardSize:
* BrowserWindowController.m:
(-[BrowserWindowController validateUserInterfaceItem:]):
call through to webview
(-[BrowserWindowController makeTextStandardSize:]):
ditto
* English.lproj/MainMenu.nib:
Added Make Text Normal Size menu item with keyboard equivalent of command-0, in
between Make Text Bigger and Make Text Smaller
* HTMLSourceDocument.m:
(-[HTMLSourceDocument canMakeTextStandardSize]):
new method, imitates WebView code
(-[HTMLSourceDocument makeTextStandardSize:]):
ditto
(-[HTMLSourceDocument validateUserInterfaceItem:]):
validate new method
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9152
268f45cc-cd09-0410-ab3c-
d52691b4dbfc