| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 return step; | 434 return step; |
| 435 } | 435 } |
| 436 | 436 |
| 437 // ---------------------------- | 437 // ---------------------------- |
| 438 | 438 |
| 439 DateTimeEditElement::EditControlOwner::~EditControlOwner() | 439 DateTimeEditElement::EditControlOwner::~EditControlOwner() |
| 440 { | 440 { |
| 441 } | 441 } |
| 442 | 442 |
| 443 DateTimeEditElement::DateTimeEditElement(Document& document, EditControlOwner& e
ditControlOwner) | 443 DateTimeEditElement::DateTimeEditElement(Document& document, EditControlOwner& e
ditControlOwner) |
| 444 : HTMLDivElement(divTag, document) | 444 : HTMLDivElement(document) |
| 445 , m_editControlOwner(&editControlOwner) | 445 , m_editControlOwner(&editControlOwner) |
| 446 { | 446 { |
| 447 setHasCustomStyleCallbacks(); | 447 setHasCustomStyleCallbacks(); |
| 448 } | 448 } |
| 449 | 449 |
| 450 DateTimeEditElement::~DateTimeEditElement() | 450 DateTimeEditElement::~DateTimeEditElement() |
| 451 { | 451 { |
| 452 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) | 452 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) |
| 453 m_fields[fieldIndex]->removeEventHandler(); | 453 m_fields[fieldIndex]->removeEventHandler(); |
| 454 } | 454 } |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 { | 791 { |
| 792 DateTimeFieldsState dateTimeFieldsState; | 792 DateTimeFieldsState dateTimeFieldsState; |
| 793 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) | 793 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) |
| 794 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); | 794 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); |
| 795 return dateTimeFieldsState; | 795 return dateTimeFieldsState; |
| 796 } | 796 } |
| 797 | 797 |
| 798 } // namespace WebCore | 798 } // namespace WebCore |
| 799 | 799 |
| 800 #endif | 800 #endif |
| OLD | NEW |