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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 533963002: Don't fail the style assert in Element::rendererIsFocusable if the document is active. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile. Created 6 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 | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 4ed3d84b79ed8cf92ccbfbf500873526525e86f2..01d18004c0dc9520de0f8aeecb6babca82eadc8a 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1692,6 +1692,9 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection()
if (!selection.isNone())
return;
+ // Need to clean out style and layout state before querying Element::isFocusable().
+ frame()->document()->updateLayoutIgnorePendingStylesheets();
+
// Try to find the first focusable node up the chain, which will, for
// example, focus links if we have found text within the link.
Node* node = activeMatch->firstNode();
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698