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