| Index: third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp b/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
|
| index 551d52026b058052756bb953ce8201a2a68f5c20..5789ab28bc65f15316f0a859e6b81771bb5f04ea 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
|
| @@ -573,6 +573,7 @@ void DateTimeEditElement::focusByOwner(Element* oldFocusedElement)
|
| if (oldFocusedElement && oldFocusedElement->isDateTimeFieldElement()) {
|
| DateTimeFieldElement* oldFocusedField = static_cast<DateTimeFieldElement*>(oldFocusedElement);
|
| size_t index = fieldIndexOf(*oldFocusedField);
|
| + document().updateLayoutTreeIgnorePendingStylesheets();
|
| if (index != invalidFieldIndex && oldFocusedField->isFocusable()) {
|
| oldFocusedField->focus();
|
| return;
|
| @@ -604,6 +605,7 @@ void DateTimeEditElement::fieldValueChanged()
|
|
|
| bool DateTimeEditElement::focusOnNextFocusableField(size_t startIndex)
|
| {
|
| + document().updateLayoutTreeIgnorePendingStylesheets();
|
| for (size_t fieldIndex = startIndex; fieldIndex < m_fields.size(); ++fieldIndex) {
|
| if (m_fields[fieldIndex]->isFocusable()) {
|
| m_fields[fieldIndex]->focus();
|
| @@ -626,6 +628,7 @@ bool DateTimeEditElement::focusOnPreviousField(const DateTimeFieldElement& field
|
| const size_t startFieldIndex = fieldIndexOf(field);
|
| if (startFieldIndex == invalidFieldIndex)
|
| return false;
|
| + document().updateLayoutTreeIgnorePendingStylesheets();
|
| size_t fieldIndex = startFieldIndex;
|
| while (fieldIndex > 0) {
|
| --fieldIndex;
|
|
|