Reviewed by Harrison.
- fixed <rdar://problem/
3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
* WebView.subproj/WebHTMLView.m:
(-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
"action" style methods in this class that don't always want to be valid. For the ones where state
makes sense, added the state-checking code too for the menu item case.
(-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
would work fine on a non-editable selection.
(-[WebHTMLView swapWithMark:]): Ditto.
(-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8570
268f45cc-cd09-0410-ab3c-
d52691b4dbfc