Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: Source/core/html/shadow/DateTimeEditElement.cpp

Issue 159893007: Revert of Update of change event for datetime input type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 } 687 }
688 setNeedsStyleRecalc(); 688 setNeedsStyleRecalc();
689 } 689 }
690 } 690 }
691 691
692 AtomicString DateTimeEditElement::localeIdentifier() const 692 AtomicString DateTimeEditElement::localeIdentifier() const
693 { 693 {
694 return m_editControlOwner ? m_editControlOwner->localeIdentifier() : nullAto m; 694 return m_editControlOwner ? m_editControlOwner->localeIdentifier() : nullAto m;
695 } 695 }
696 696
697 void DateTimeEditElement::fieldDidChangeValueByKeyboard()
698 {
699 if (m_editControlOwner)
700 m_editControlOwner->editControlDidChangeValueByKeyboard();
701 }
702
703 void DateTimeEditElement::readOnlyStateChanged() 697 void DateTimeEditElement::readOnlyStateChanged()
704 { 698 {
705 updateUIState(); 699 updateUIState();
706 } 700 }
707 701
708 void DateTimeEditElement::resetFields() 702 void DateTimeEditElement::resetFields()
709 { 703 {
710 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) 704 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex)
711 m_fields[fieldIndex]->removeEventHandler(); 705 m_fields[fieldIndex]->removeEventHandler();
712 m_fields.shrink(0); 706 m_fields.shrink(0);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 { 790 {
797 DateTimeFieldsState dateTimeFieldsState; 791 DateTimeFieldsState dateTimeFieldsState;
798 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) 792 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex)
799 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); 793 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState);
800 return dateTimeFieldsState; 794 return dateTimeFieldsState;
801 } 795 }
802 796
803 } // namespace WebCore 797 } // namespace WebCore
804 798
805 #endif 799 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/DateTimeEditElement.h ('k') | Source/core/html/shadow/DateTimeFieldElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698