diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/page/validation_message_client_impl.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/page/validation_message_client_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/page/validation_message_client_impl.cc b/chromium/third_party/blink/renderer/core/page/validation_message_client_impl.cc index fadd41641db..1566385ead9 100644 --- a/chromium/third_party/blink/renderer/core/page/validation_message_client_impl.cc +++ b/chromium/third_party/blink/renderer/core/page/validation_message_client_impl.cc @@ -155,6 +155,11 @@ void ValidationMessageClientImpl::DocumentDetached(const Document& document) { HideValidationMessageImmediately(*current_anchor_); } +void ValidationMessageClientImpl::DidChangeFocusTo(const Element* new_element) { + if (current_anchor_ && current_anchor_ != new_element) + HideValidationMessageImmediately(*current_anchor_); +} + void ValidationMessageClientImpl::CheckAnchorStatus(TimerBase*) { DCHECK(current_anchor_); if ((!WebTestSupport::IsRunningWebTest() && |