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

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

Issue 2745103008: INPUT element: Fix a DCHECK failure in RadioInputType::findNextFocusableRadioButtonInGroup. (Closed)
Patch Set: Add C++ unit test 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 | « third_party/WebKit/Source/core/html/HTMLInputElementTest.cpp ('k') | 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 24c798ea6e2e1b5a7259c34e4ab1fd31c2e7f6e0..89da99e39345a10c0eeb4b69fd67cba3fb1b5486 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -110,6 +110,9 @@ void RadioInputType::handleKeydownEvent(KeyboardEvent* event) {
? (key == "ArrowDown" || key == "ArrowLeft")
: (key == "ArrowDown" || key == "ArrowRight");
+ // Force layout for isFocusable() in findNextFocusableRadioButtonInGroup().
+ document.updateStyleAndLayoutIgnorePendingStylesheets();
+
// 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 =
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElementTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698