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

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

Issue 2728403003: Stop casting HTMLInputElement to HTMLInputElement. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
index ed9afd7b6a38f98c8a5cac9fc199c402502a0738..24c798ea6e2e1b5a7259c34e4ab1fd31c2e7f6e0 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -112,13 +112,13 @@ void RadioInputType::handleKeydownEvent(KeyboardEvent* event) {
// We can only stay within the form's children if the form hasn't been demoted
// to a leaf because of malformed HTML.
- HTMLInputElement* inputElement = findNextFocusableRadioButtonInGroup(
- toHTMLInputElement(&element()), forward);
+ HTMLInputElement* inputElement =
+ findNextFocusableRadioButtonInGroup(&element(), forward);
if (!inputElement) {
// Traverse in reverse direction till last or first radio button
forward = !(forward);
- HTMLInputElement* nextInputElement = findNextFocusableRadioButtonInGroup(
- toHTMLInputElement(&element()), forward);
+ HTMLInputElement* nextInputElement =
+ findNextFocusableRadioButtonInGroup(&element(), forward);
while (nextInputElement) {
inputElement = nextInputElement;
nextInputElement =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698