| Index: Source/core/dom/TreeScope.cpp
|
| diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
|
| index ed11d7efbffaedf6e3d1bff1253bc5ca4be2eac0..9c73d052a93c05a61a481e16da9b26c8bf2d7b13 100644
|
| --- a/Source/core/dom/TreeScope.cpp
|
| +++ b/Source/core/dom/TreeScope.cpp
|
| @@ -345,8 +345,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;
|
|
|
|
|