| Index: Source/WebCore/html/shadow/DateTimeFieldElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/shadow/DateTimeFieldElement.cpp (revision 131283)
|
| +++ Source/WebCore/html/shadow/DateTimeFieldElement.cpp (working copy)
|
| @@ -144,7 +144,11 @@
|
|
|
| bool DateTimeFieldElement::isFocusable() const
|
| {
|
| - return !isReadOnly();
|
| + if (isReadOnly())
|
| + return false;
|
| + if (m_fieldOwner && m_fieldOwner->isFieldOwnerDisabledOrReadOnly())
|
| + return false;
|
| + return HTMLElement::isFocusable();
|
| }
|
|
|
| bool DateTimeFieldElement::isReadOnly() const
|
|
|