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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 } | 784 } |
785 | 785 |
786 DateTimeFieldsState DateTimeEditElement::valueAsDateTimeFieldsState() const | 786 DateTimeFieldsState DateTimeEditElement::valueAsDateTimeFieldsState() const |
787 { | 787 { |
788 DateTimeFieldsState dateTimeFieldsState; | 788 DateTimeFieldsState dateTimeFieldsState; |
789 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) | 789 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) |
790 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); | 790 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); |
791 return dateTimeFieldsState; | 791 return dateTimeFieldsState; |
792 } | 792 } |
793 | 793 |
794 void DateTimeEditElement::visitWith(Visitor* visitor) const | 794 void DateTimeEditElement::adjustAndMark(Visitor* visitor) const |
795 { | 795 { |
796 visitor->visit(this); | 796 visitor->mark(this); |
797 } | 797 } |
798 | 798 |
799 void DateTimeEditElement::trace(Visitor* visitor) | 799 void DateTimeEditElement::trace(Visitor* visitor) |
800 { | 800 { |
801 visitor->trace(m_fields); | 801 visitor->trace(m_fields); |
802 HTMLDivElement::trace(visitor); | 802 HTMLDivElement::trace(visitor); |
803 DateTimeFieldElement::FieldOwner::trace(visitor); | 803 DateTimeFieldElement::FieldOwner::trace(visitor); |
804 } | 804 } |
805 | 805 |
806 } // namespace WebCore | 806 } // namespace WebCore |
807 | 807 |
808 #endif | 808 #endif |
OLD | NEW |