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

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

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/forms/RangeInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
index 7d9016858096c90d26ba1bff7644678a89680f50..50eb0dd59db20d9a5d0a0a72b36aaf0bbaf611be 100644
--- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
@@ -363,6 +363,8 @@ void RangeInputType::updateTickMarkValues() {
for (unsigned i = 0; i < options->length(); ++i) {
HTMLOptionElement* optionElement = options->item(i);
String optionValue = optionElement->value();
+ if (optionElement->isDisabledFormControl() || optionValue.isEmpty())
+ continue;
if (!this->element().isValidValue(optionValue))
continue;
m_tickMarkValues.push_back(parseToNumber(optionValue, Decimal::nan()));
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/ColorInputType.cpp ('k') | third_party/WebKit/Source/core/paint/ThemePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698