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 17 matching lines...) Expand all Loading... |
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 "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
37 #include "core/dom/KeyboardEvent.h" | 37 #include "core/dom/KeyboardEvent.h" |
38 #include "core/dom/NodeTraversal.h" | |
39 #include "core/dom/shadow/ElementShadow.h" | |
40 #include "core/dom/shadow/ShadowRoot.h" | 38 #include "core/dom/shadow/ShadowRoot.h" |
41 #include "core/html/DateTimeFieldsState.h" | 39 #include "core/html/DateTimeFieldsState.h" |
42 #include "core/html/FormController.h" | 40 #include "core/html/FormController.h" |
43 #include "core/html/HTMLDataListElement.h" | 41 #include "core/html/HTMLDataListElement.h" |
44 #include "core/html/HTMLInputElement.h" | 42 #include "core/html/HTMLInputElement.h" |
45 #include "core/html/HTMLOptionElement.h" | 43 #include "core/html/HTMLOptionElement.h" |
46 #include "core/html/shadow/PickerIndicatorElement.h" | 44 #include "core/html/shadow/PickerIndicatorElement.h" |
47 #include "core/page/FocusController.h" | 45 #include "core/page/FocusController.h" |
48 #include "core/page/Page.h" | 46 #include "core/page/Page.h" |
49 #include "core/platform/DateComponents.h" | 47 #include "core/platform/DateComponents.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 580 |
583 if (element()->isRequired() || !m_dateTimeEditElement->anyEditableFieldsHave
Values()) | 581 if (element()->isRequired() || !m_dateTimeEditElement->anyEditableFieldsHave
Values()) |
584 m_clearButton->setInlineStyleProperty(CSSPropertyVisibility, CSSValueHid
den); | 582 m_clearButton->setInlineStyleProperty(CSSPropertyVisibility, CSSValueHid
den); |
585 else | 583 else |
586 m_clearButton->removeInlineStyleProperty(CSSPropertyVisibility); | 584 m_clearButton->removeInlineStyleProperty(CSSPropertyVisibility); |
587 } | 585 } |
588 | 586 |
589 } // namespace WebCore | 587 } // namespace WebCore |
590 | 588 |
591 #endif | 589 #endif |
OLD | NEW |