Reviewed by Anders.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Sep 2006 17:25:46 +0000 (17:25 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Sep 2006 17:25:46 +0000 (17:25 +0000)
commit7158fb6951228a091e30ed43eda68e9e45275a56
tree0b149ac6c900c67f3946fb5e0d3d8485151a9b72
parent894abca78592f5986912694bde0dfc1b64393201
    Reviewed by Anders.

        - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10667
          Password: Double-click should select-all to avoid exposing word boundaries

        Test: fast/forms/password-doubleclick-selection.html

        * editing/visible_units.cpp:
        (WebCore::previousBoundary): When searching for boundaries in renderers that use the textSecurity property,
         convert characters in strings to alpha-numeric characters (in this case, all 'x's) so that every character
         isn't treated as a punctuation boundary.
        (WebCore::nextBoundary): ditto.
        * editing/TextIterator.cpp: (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Updated to use the renderer's
          string instead of the node value.  This matches the base class implementation of handleTextNode.

        Code cleanup.
        * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
          Avoid unnecessary check for password field case if the smart replace condition is false.
        * page/Frame.cpp: (WebCore::Frame::mayCopy): Removed duplicate code.  Calls isSelectionInPasswordField now.
        * rendering/RenderText.cpp: (WebCore::RenderText::setText): Updated formatting.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/editing/TextIterator.cpp
WebCore/editing/visible_units.cpp
WebCore/page/Frame.cpp
WebCore/rendering/RenderText.cpp