Reviewed by thatcher
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Sep 2006 22:54:05 +0000 (22:54 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Sep 2006 22:54:05 +0000 (22:54 +0000)
commit524809fe66683df828cf1d1c7b0f70bbd746b3e2
tree38a61952f19bd3e9cf05da661ecc31f768885c83
parenta7815ebc2d72031db3fb77f579ec7fa5cf0f52ea
    Reviewed by thatcher

        <rdar://problem/4044271>
        Writing Direction menu doesn't reflect the current writing direction (9773)

        * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
        * WebView/WebHTMLView.m:
        (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
        toggleBaseWritingDirection and changeBaseWritingDirection.
        Disable the menu item that changes the writing direction to NSWritingDirectionNautral
        because NSWritingDirectionNatural's behavior can't be implemented with CSS.
        Take control of the title of the menu item that performs toggleBaseWritingDirection:
        instead of checking/unchecking it, otherwise we wouldn't know what a check means.
        (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
        direction is not NSWritingDirectionNatural, since we've disabled the
        menu item that performs it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/English.lproj/Localizable.strings
WebKit/WebView/WebHTMLView.m