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

Unified Diff: third_party/WebKit/Source/core/html/forms/OptionList.cpp

Issue 2131073002: SELECT element: Avoid to use listItems() in HTMLSelectElement::selectOption() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/Source/core/html/forms/OptionList.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/OptionList.cpp b/third_party/WebKit/Source/core/html/forms/OptionList.cpp
index 06f4f6fe6cef9715d830be5e4e85c81303e910bf..5cdd19aac1115f1d437151385b00c962625dd17d 100644
--- a/third_party/WebKit/Source/core/html/forms/OptionList.cpp
+++ b/third_party/WebKit/Source/core/html/forms/OptionList.cpp
@@ -28,7 +28,7 @@ void OptionListIterator::advance(HTMLOptionElement* previous)
m_current = toHTMLOptionElement(current);
return;
}
- if (isHTMLOptGroupElement(current) && current->parentNode() == m_select) {
+ if (isHTMLOptGroupElement(current) && current->parentNode() == m_select.get()) {
if ((m_current = Traversal<HTMLOptionElement>::firstChild(*current)))
return;
}

Powered by Google App Engine
This is Rietveld 408576698