OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 32 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
33 #include "core/html/BaseMultipleFieldsDateAndTimeInputType.h" | 33 #include "core/html/BaseMultipleFieldsDateAndTimeInputType.h" |
34 | 34 |
35 #include "CSSValueKeywords.h" | 35 #include "CSSValueKeywords.h" |
36 #include "core/dom/KeyboardEvent.h" | 36 #include "core/dom/KeyboardEvent.h" |
37 #include "core/dom/NodeTraversal.h" | |
38 #include "core/dom/shadow/ElementShadow.h" | |
39 #include "core/dom/shadow/ShadowRoot.h" | 37 #include "core/dom/shadow/ShadowRoot.h" |
40 #include "core/html/DateTimeFieldsState.h" | 38 #include "core/html/DateTimeFieldsState.h" |
41 #include "core/html/FormController.h" | 39 #include "core/html/FormController.h" |
42 #include "core/html/HTMLDataListElement.h" | 40 #include "core/html/HTMLDataListElement.h" |
43 #include "core/html/HTMLInputElement.h" | 41 #include "core/html/HTMLInputElement.h" |
44 #include "core/html/HTMLOptionElement.h" | 42 #include "core/html/HTMLOptionElement.h" |
45 #include "core/html/shadow/PickerIndicatorElement.h" | 43 #include "core/html/shadow/PickerIndicatorElement.h" |
46 #include "core/page/FocusController.h" | 44 #include "core/page/FocusController.h" |
47 #include "core/page/Page.h" | 45 #include "core/page/Page.h" |
48 #include "core/platform/DateComponents.h" | 46 #include "core/platform/DateComponents.h" |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 | 577 |
580 if (element()->isRequired() || !m_dateTimeEditElement->anyEditableFieldsHave
Values()) | 578 if (element()->isRequired() || !m_dateTimeEditElement->anyEditableFieldsHave
Values()) |
581 m_clearButton->setInlineStyleProperty(CSSPropertyVisibility, CSSValueHid
den); | 579 m_clearButton->setInlineStyleProperty(CSSPropertyVisibility, CSSValueHid
den); |
582 else | 580 else |
583 m_clearButton->removeInlineStyleProperty(CSSPropertyVisibility); | 581 m_clearButton->removeInlineStyleProperty(CSSPropertyVisibility); |
584 } | 582 } |
585 | 583 |
586 } // namespace WebCore | 584 } // namespace WebCore |
587 | 585 |
588 #endif | 586 #endif |
OLD | NEW |