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

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: 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 2a353bb472d393b91cb46404208258329310b9c8..94b52ccff26e9496227f6f4092eb0aa47477a1c9 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