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

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

Issue 537393002: Adjust autofilled property for <search> input and <select> elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add platform specific expectation file Created 6 years, 3 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 906812120075f2065568cbede9200c54123b4cd9..0d7495826c6d64af6e83dca19fb96ec5c0f4674b 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)
« no previous file with comments | « LayoutTests/platform/win/fast/forms/autofilled-expected.txt ('k') | Source/core/html/shadow/TextControlInnerElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698