Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Unified Diff: third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e76201e85791cfc0a7a1b736533be23921825cf1..01bcd1098588fe08ef47edfa10546e010ee9654d 100644
--- a/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
@@ -567,7 +567,7 @@ void DateTimeEditElement::focusByOwner(Element* oldFocusedElement)
if (oldFocusedElement && oldFocusedElement->isDateTimeFieldElement()) {
DateTimeFieldElement* oldFocusedField = static_cast<DateTimeFieldElement*>(oldFocusedElement);
size_t index = fieldIndexOf(*oldFocusedField);
- document().updateLayoutTreeForNode(oldFocusedField);
+ document().updateStyleAndLayoutTreeForNode(oldFocusedField);
if (index != invalidFieldIndex && oldFocusedField->isFocusable()) {
oldFocusedField->focus();
return;
@@ -599,7 +599,7 @@ void DateTimeEditElement::fieldValueChanged()
bool DateTimeEditElement::focusOnNextFocusableField(size_t startIndex)
{
- document().updateLayoutTreeIgnorePendingStylesheets();
+ document().updateStyleAndLayoutTreeIgnorePendingStylesheets();
for (size_t fieldIndex = startIndex; fieldIndex < m_fields.size(); ++fieldIndex) {
if (m_fields[fieldIndex]->isFocusable()) {
m_fields[fieldIndex]->focus();
@@ -622,7 +622,7 @@ bool DateTimeEditElement::focusOnPreviousField(const DateTimeFieldElement& field
const size_t startFieldIndex = fieldIndexOf(field);
if (startFieldIndex == invalidFieldIndex)
return false;
- document().updateLayoutTreeIgnorePendingStylesheets();
+ document().updateStyleAndLayoutTreeIgnorePendingStylesheets();
size_t fieldIndex = startFieldIndex;
while (fieldIndex > 0) {
--fieldIndex;
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/ImageInputType.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698