Added support for momentarily revealing last typed character in password input.
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 24 Aug 2011 14:28:59 +0000 (11:28 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 25 Aug 2011 14:26:04 +0000 (11:26 -0300)
commit35023190d11c50ec0ce9ec038bf224f07f87db5a
tree44d812404051668fb631e219b7f9f3d7315c534b
parent3da1d42284d6ab38146278a1218ebf97235e341c
Added support for momentarily revealing last typed character in password input.
Code change was partially based on Apple's iOS code and Samuel Nevala's work.
https://bugs.webkit.org/show_bug.cgi?id=32509

Patch by Chang Shu <cshu@webkit.org> on 2011-08-23
Reviewed by Alexey Proskuryakov.

Source/WebCore:

* editing/InsertIntoTextNodeCommand.cpp:
(WebCore::InsertIntoTextNodeCommand::doApply):
* rendering/RenderText.cpp:
(WebCore::SecureTextTimer::SecureTextTimer):
(WebCore::SecureTextTimer::restartWithNewText):
(WebCore::SecureTextTimer::invalidate):
(WebCore::SecureTextTimer::lastTypedCharacterOffset):
(WebCore::SecureTextTimer::fired):
(WebCore::RenderText::willBeDestroyed):
(WebCore::RenderText::setTextInternal):
(WebCore::RenderText::secureText):
(WebCore::RenderText::momentarilyRevealLastTypedCharacter):
* rendering/RenderText.h:
(WebCore::RenderText::isSecure):
* testing/Internals.cpp:
(WebCore::Internals::setPasswordEchoEnabled): Fixed some silly coding in Internals.
(WebCore::Internals::setPasswordEchoDurationInSeconds):
(WebCore::Internals::reset):

LayoutTests:

Updated failed expected files.

* editing/input/password-echo-passnode-expected.txt:
* editing/input/password-echo-passnode2-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93656 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

Source/WebCore/editing/InsertIntoTextNodeCommand.cpp
Source/WebCore/testing/Internals.cpp
LayoutTests/ChangeLog
LayoutTests/editing/input/password-echo-passnode-expected.txt
LayoutTests/editing/input/password-echo-passnode2-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/editing/InsertIntoTextNodeCommand.cpp
Source/WebCore/rendering/RenderText.cpp
Source/WebCore/rendering/RenderText.h
Source/WebCore/testing/Internals.cpp