Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 2e9ebcf57b3a5d410e775ff3202f8586cbf684aa..5a414bae9abb526fe0e730a0456c35baa50a1dca 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3327,11 +3327,6 @@ 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()) { |