| Index: Source/core/dom/TreeScope.cpp
|
| diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
|
| index 45dd8a0e991870a8dad6293ec9cfefea410871ee..0b9d158e32eec67825ae533c47c614aa85b6a0f7 100644
|
| --- a/Source/core/dom/TreeScope.cpp
|
| +++ b/Source/core/dom/TreeScope.cpp
|
| @@ -351,8 +351,10 @@ Element* TreeScope::adjustedFocusedElement() const
|
| {
|
| Document& document = rootNode().document();
|
| Element* element = document.focusedElement();
|
| + // FIXME(kenrb): The toLocalFrame() cast should be removed when RemoteFrames can have FrameTrees.
|
| + // At that point, focusedFrameOwnerElement should take a Frame instead of a LocalFrame.
|
| if (!element && document.page())
|
| - element = focusedFrameOwnerElement(document.page()->focusController().focusedFrame(), document.frame());
|
| + element = focusedFrameOwnerElement(toLocalFrameTemporary(document.page()->focusController().focusedFrame()), document.frame());
|
| if (!element)
|
| return 0;
|
|
|
|
|