Fix assertion failure in a case that the dirty flag of a textarea element is changed
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Sep 2010 07:09:56 +0000 (07:09 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Sep 2010 07:09:56 +0000 (07:09 +0000)
commitc0fd024d5e122b0caa14a807508de1cb0c32fa27
treefe61b496b6a7d406f9799214532ccf8fc0443017
parent385cf3e136b68bd7cd8fb549dab5ddf28d32769b
Fix assertion failure in a case that the dirty flag of a textarea element is changed
https://bugs.webkit.org/show_bug.cgi?id=45681

Reviewed by Alexey Proskuryakov.

WebCore:

We need to call setNeedsValidityCheck() after updating m_isDirty.

Test: fast/forms/textarea-checkValidity-crash.html

* html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::setValue):
(WebCore::HTMLTextAreaElement::setNonDirtyValue):
(WebCore::HTMLTextAreaElement::setValueCommon):
* html/HTMLTextAreaElement.h:

LayoutTests:

* fast/forms/textarea-checkValidity-crash-expected.txt: Added.
* fast/forms/textarea-checkValidity-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/textarea-checkValidity-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/textarea-checkValidity-crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLTextAreaElement.cpp
WebCore/html/HTMLTextAreaElement.h