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

Unified Diff: Source/core/dom/Document.cpp

Issue 21346002: Fix renderer assert after autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 7de388683f0ec641d83ef3cacaa3c95618a7c364..9eb4c4abc69546b6ecd40d53d77b0c6967b7d9af 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3469,6 +3469,11 @@ bool Document::setFocusedElement(PassRefPtr<Element> prpNewFocusedElement, Focus
else
view()->setFocus(false);
}
+
+ // Autofill client may have modified the value of newFocusedElement, thus require
+ // a layout update here, otherwise it will assert at newFocusedElement->isFocusable().
+ // See crbug.com/251163.
+ updateLayoutIgnorePendingStylesheets();
}
if (newFocusedElement && newFocusedElement->isFocusable()) {
« 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