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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 441 |
442 DateTimeEditElement::DateTimeEditElement(Document& document, EditControlOwner& e
ditControlOwner) | 442 DateTimeEditElement::DateTimeEditElement(Document& document, EditControlOwner& e
ditControlOwner) |
443 : HTMLDivElement(document) | 443 : HTMLDivElement(document) |
444 , m_editControlOwner(&editControlOwner) | 444 , m_editControlOwner(&editControlOwner) |
445 { | 445 { |
446 setHasCustomStyleCallbacks(); | 446 setHasCustomStyleCallbacks(); |
447 } | 447 } |
448 | 448 |
449 DateTimeEditElement::~DateTimeEditElement() | 449 DateTimeEditElement::~DateTimeEditElement() |
450 { | 450 { |
| 451 #if !ENABLE(OILPAN) |
451 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) | 452 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) |
452 m_fields[fieldIndex]->removeEventHandler(); | 453 m_fields[fieldIndex]->removeEventHandler(); |
| 454 #endif |
453 } | 455 } |
454 | 456 |
455 inline Element* DateTimeEditElement::fieldsWrapperElement() const | 457 inline Element* DateTimeEditElement::fieldsWrapperElement() const |
456 { | 458 { |
457 ASSERT(firstChild()); | 459 ASSERT(firstChild()); |
458 return toElement(firstChild()); | 460 return toElement(firstChild()); |
459 } | 461 } |
460 | 462 |
461 void DateTimeEditElement::addField(PassRefPtr<DateTimeFieldElement> field) | 463 void DateTimeEditElement::addField(PassRefPtr<DateTimeFieldElement> field) |
462 { | 464 { |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 { | 798 { |
797 DateTimeFieldsState dateTimeFieldsState; | 799 DateTimeFieldsState dateTimeFieldsState; |
798 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) | 800 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) |
799 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); | 801 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); |
800 return dateTimeFieldsState; | 802 return dateTimeFieldsState; |
801 } | 803 } |
802 | 804 |
803 } // namespace WebCore | 805 } // namespace WebCore |
804 | 806 |
805 #endif | 807 #endif |
OLD | NEW |