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

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 471803003: Adjust autofilled property for <search> input and <select> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and add NeedsRebaseLine for window test. Created 6 years, 4 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: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index 371c14303d801521fb4d498053b744e261d0674d..dd25e28343f8b3fd8d111e243dbe765ae49e5cde 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -914,6 +914,8 @@ void HTMLSelectElement::optionRemoved(const HTMLOptionElement& option)
m_activeSelectionAnchorIndex--;
if (listIndex <= m_activeSelectionEndIndex)
m_activeSelectionEndIndex--;
+ if (listIndex == selectedIndex())
+ setAutofilled(false);
}
void HTMLSelectElement::selectOption(int optionIndex, SelectOptionFlags flags)

Powered by Google App Engine
This is Rietveld 408576698