| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 field->focus(); | 744 field->focus(); |
| 745 } | 745 } |
| 746 | 746 |
| 747 if (lastChildToBeRemoved) { | 747 if (lastChildToBeRemoved) { |
| 748 for (Node* childNode = fieldsWrapper->firstChild(); childNode; | 748 for (Node* childNode = fieldsWrapper->firstChild(); childNode; |
| 749 childNode = fieldsWrapper->firstChild()) { | 749 childNode = fieldsWrapper->firstChild()) { |
| 750 fieldsWrapper->removeChild(childNode); | 750 fieldsWrapper->removeChild(childNode); |
| 751 if (childNode == lastChildToBeRemoved) | 751 if (childNode == lastChildToBeRemoved) |
| 752 break; | 752 break; |
| 753 } | 753 } |
| 754 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create( | 754 setNeedsStyleRecalc( |
| 755 StyleChangeReason::Control)); | 755 SubtreeStyleChange, |
| 756 StyleChangeReasonForTracing::create(StyleChangeReason::Control)); |
| 756 } | 757 } |
| 757 } | 758 } |
| 758 | 759 |
| 759 AtomicString DateTimeEditElement::localeIdentifier() const { | 760 AtomicString DateTimeEditElement::localeIdentifier() const { |
| 760 return m_editControlOwner ? m_editControlOwner->localeIdentifier() : nullAtom; | 761 return m_editControlOwner ? m_editControlOwner->localeIdentifier() : nullAtom; |
| 761 } | 762 } |
| 762 | 763 |
| 763 void DateTimeEditElement::fieldDidChangeValueByKeyboard() { | 764 void DateTimeEditElement::fieldDidChangeValueByKeyboard() { |
| 764 if (m_editControlOwner) | 765 if (m_editControlOwner) |
| 765 m_editControlOwner->editControlDidChangeValueByKeyboard(); | 766 m_editControlOwner->editControlDidChangeValueByKeyboard(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 } | 853 } |
| 853 | 854 |
| 854 DateTimeFieldsState DateTimeEditElement::valueAsDateTimeFieldsState() const { | 855 DateTimeFieldsState DateTimeEditElement::valueAsDateTimeFieldsState() const { |
| 855 DateTimeFieldsState dateTimeFieldsState; | 856 DateTimeFieldsState dateTimeFieldsState; |
| 856 for (const auto& field : m_fields) | 857 for (const auto& field : m_fields) |
| 857 field->populateDateTimeFieldsState(dateTimeFieldsState); | 858 field->populateDateTimeFieldsState(dateTimeFieldsState); |
| 858 return dateTimeFieldsState; | 859 return dateTimeFieldsState; |
| 859 } | 860 } |
| 860 | 861 |
| 861 } // namespace blink | 862 } // namespace blink |
| OLD | NEW |