| Index: Source/WebCore/html/shadow/DateTimeFieldElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/shadow/DateTimeFieldElement.cpp (revision 137540)
|
| +++ Source/WebCore/html/shadow/DateTimeFieldElement.cpp (working copy)
|
| @@ -144,6 +144,11 @@
|
| appendChild(Text::create(document(), visibleValue()));
|
| }
|
|
|
| +bool DateTimeFieldElement::isDateTimeFieldElement() const
|
| +{
|
| + return true;
|
| +}
|
| +
|
| bool DateTimeFieldElement::isFocusable() const
|
| {
|
| if (isReadOnly())
|
| @@ -168,6 +173,12 @@
|
| return m_fieldOwner ? m_fieldOwner->localeIdentifier() : nullAtom;
|
| }
|
|
|
| +float DateTimeFieldElement::maximumWidth(const Font&)
|
| +{
|
| + const float paddingLeftAndRight = 2; // This should match to html.css.
|
| + return paddingLeftAndRight;
|
| +}
|
| +
|
| void DateTimeFieldElement::setReadOnly()
|
| {
|
| // Set HTML attribute readonly to change apperance.
|
|
|