| 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();
|
|
|