| Index: Source/core/html/shadow/DateTimeEditElement.cpp
|
| diff --git a/Source/core/html/shadow/DateTimeEditElement.cpp b/Source/core/html/shadow/DateTimeEditElement.cpp
|
| index 1e77dd76dc890f9627f7a77722feb72c93504253..11bfb528260be3187bcd7ef01486cd0c8edbaabb 100644
|
| --- a/Source/core/html/shadow/DateTimeEditElement.cpp
|
| +++ b/Source/core/html/shadow/DateTimeEditElement.cpp
|
| @@ -662,7 +662,7 @@ bool DateTimeEditElement::isReadOnly() const
|
| void DateTimeEditElement::layout(const LayoutParameters& layoutParameters, const DateComponents& dateValue)
|
| {
|
| DEFINE_STATIC_LOCAL(AtomicString, fieldsWrapperPseudoId, ("-webkit-datetime-edit-fields-wrapper", AtomicString::ConstructFromLiteral));
|
| - if (!firstChild()) {
|
| + if (!hasChildren()) {
|
| RefPtrWillBeRawPtr<HTMLDivElement> element = HTMLDivElement::create(document());
|
| element->setShadowPseudoId(fieldsWrapperPseudoId);
|
| appendChild(element.get());
|
|
|