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

Unified Diff: third_party/WebKit/Source/core/html/HTMLDataListOptionsCollection.h

Issue 2746823002: Correct elementMatches filter for datalist.options (Closed)
Patch Set: Remove superfluous test, added filter to callees. Created 3 years, 9 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/HTMLDataListOptionsCollection.h
diff --git a/third_party/WebKit/Source/core/html/HTMLDataListOptionsCollection.h b/third_party/WebKit/Source/core/html/HTMLDataListOptionsCollection.h
index 64fcd6b233c0891b5a1fb795bbd8b84abd641015..4b15533033c05eae5e06760259e735cd9e7f013a 100644
--- a/third_party/WebKit/Source/core/html/HTMLDataListOptionsCollection.h
+++ b/third_party/WebKit/Source/core/html/HTMLDataListOptionsCollection.h
@@ -37,12 +37,7 @@ DEFINE_TYPE_CASTS(HTMLDataListOptionsCollection,
inline bool HTMLDataListOptionsCollection::elementMatches(
const HTMLElement& element) const {
- if (isHTMLOptionElement(element)) {
- const HTMLOptionElement& option = toHTMLOptionElement(element);
- if (!option.isDisabledFormControl() && !option.value().isEmpty())
- return true;
- }
- return false;
+ return isHTMLOptionElement(element);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698