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

Unified Diff: Source/web/WebSearchableFormData.cpp

Issue 19488002: Introduce toHTMLSelectElement and remove isHTMLSelectElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/web/WebSearchableFormData.cpp
diff --git a/Source/web/WebSearchableFormData.cpp b/Source/web/WebSearchableFormData.cpp
index b24489bc77929719365121c8d5b22462213eee18..31bd3ca68a8e1d3176f21d64461047305e1c6e50 100644
--- a/Source/web/WebSearchableFormData.cpp
+++ b/Source/web/WebSearchableFormData.cpp
@@ -143,8 +143,9 @@ bool IsInDefaultState(HTMLFormControlElement* formElement)
const HTMLInputElement* inputElement = toHTMLInputElement(formElement);
if (inputElement->isCheckbox() || inputElement->isRadioButton())
return inputElement->checked() == inputElement->hasAttribute(checkedAttr);
- } else if (formElement->hasTagName(HTMLNames::selectTag))
- return IsSelectInDefaultState(static_cast<HTMLSelectElement*>(formElement));
+ } else if (formElement->hasTagName(HTMLNames::selectTag)) {
tkent 2013/07/17 01:47:56 We may use isHTMLSelectElement because toHTMLSelec
+ return IsSelectInDefaultState(toHTMLSelectElement(formElement));
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698