Index: Source/core/html/forms/TextFieldInputType.cpp |
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp |
index b1402ae1518bc5a62b698c00180bc5b9c1b218fc..b7dc5cd7e552b05095da7e1d128631cfdd62a193 100644 |
--- a/Source/core/html/forms/TextFieldInputType.cpp |
+++ b/Source/core/html/forms/TextFieldInputType.cpp |
@@ -513,7 +513,7 @@ void TextFieldInputType::subtreeHasChanged() |
element().setValueFromRenderer(sanitizeValue(convertFromVisibleValue(element().innerTextValue()))); |
element().updatePlaceholderVisibility(false); |
// Recalc for :invalid change. |
- element().setNeedsStyleRecalc(); |
+ element().setNeedsStyleRecalc(SubtreeStyleChange); |
didSetValueByUserEdit(wasChanged ? ValueChangeStateChanged : ValueChangeStateNone); |
} |