Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index d0b933ef8e7678445183ffcec72a861ebe09657c..bd58b9eb3ba07f2537c0ae34b21a82aa198ce43f 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -206,7 +206,7 @@ void HTMLFormControlElement::setAutofilled(bool autofilled) |
return; |
m_isAutofilled = autofilled; |
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::ControlValue)); |
+ pseudoStateChanged(CSSSelector::PseudoAutofill); |
} |
static bool shouldAutofocusOnAttach(const HTMLFormControlElement* element) |