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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLegendElement.cpp

Issue 1667623002: Make sure Document::updateLayoutTree*() is called before Element::isFocusable(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 4 years, 10 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/HTMLLegendElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp b/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
index 2ddea902590cdafbd90de30370c7a50f0e4b7344..ed93f8e362dde4b22b811ef38dae9471ccafdf87 100644
--- a/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLegendElement.cpp
@@ -55,6 +55,7 @@ HTMLFormControlElement* HTMLLegendElement::associatedControl()
void HTMLLegendElement::focus(const FocusParams& params)
{
+ document().updateLayoutTreeIgnorePendingStylesheets();
if (isFocusable()) {
Element::focus(params);
return;

Powered by Google App Engine
This is Rietveld 408576698