Fix an assertion failure in CalendarPickerElement::hostInput().
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 04:18:19 +0000 (04:18 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 04:18:19 +0000 (04:18 +0000)
commitdd24e4e09cfff1f36a3bf1af60a17fca7715b2f3
treedc9637c16c4c232993073a934f1e77861297ef69
parentead19172045e92c8b0ba1f761b37db3a3e75ab13
Fix an assertion failure in CalendarPickerElement::hostInput().
https://bugs.webkit.org/show_bug.cgi?id=91568

Reviewed by Hajime Morita.

Source/WebCore:

Test: fast/forms/date/calendar-picker-type-change-onclick.html

* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::defaultEventHandler):
It's possible that this function is called when the element is detached
from the document tree.

LayoutTests:

* fast/forms/date/calendar-picker-type-change-onclick-expected.txt: Added.
* fast/forms/date/calendar-picker-type-change-onclick.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/date/calendar-picker-type-change-onclick-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/date/calendar-picker-type-change-onclick.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/shadow/CalendarPickerElement.cpp