diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-14 14:41:19 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-14 14:41:19 +0100 |
commit | 8a15fd8d24e4373f462046b46fbe8558f57f3403 (patch) | |
tree | 9c485d6b346a2fed8aaa14fbb154046296d22b7a /layout/forms | |
parent | 34125a031ed9c7814d2145070294ead44b7504b3 (diff) | |
download | UXP-8a15fd8d24e4373f462046b46fbe8558f57f3403.tar UXP-8a15fd8d24e4373f462046b46fbe8558f57f3403.tar.gz UXP-8a15fd8d24e4373f462046b46fbe8558f57f3403.tar.lz UXP-8a15fd8d24e4373f462046b46fbe8558f57f3403.tar.xz UXP-8a15fd8d24e4373f462046b46fbe8558f57f3403.zip |
Bug 1286182: Implement the layout for <input type=date>
Diffstat (limited to 'layout/forms')
-rw-r--r-- | layout/forms/nsDateTimeControlFrame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/forms/nsDateTimeControlFrame.cpp b/layout/forms/nsDateTimeControlFrame.cpp index df2e43986..fa22dceba 100644 --- a/layout/forms/nsDateTimeControlFrame.cpp +++ b/layout/forms/nsDateTimeControlFrame.cpp @@ -372,7 +372,8 @@ nsDateTimeControlFrame::AttributeChanged(int32_t aNameSpaceID, auto contentAsInputElem = static_cast<dom::HTMLInputElement*>(mContent); // If script changed the <input>'s type before setting these attributes // then we don't need to do anything since we are going to be reframed. - if (contentAsInputElem->GetType() == NS_FORM_INPUT_TIME) { + if (contentAsInputElem->GetType() == NS_FORM_INPUT_TIME || + contentAsInputElem->GetType() == NS_FORM_INPUT_DATE) { if (aAttribute == nsGkAtoms::value) { nsCOMPtr<nsIDateTimeInputArea> inputAreaContent = do_QueryInterface(mInputAreaContent); |