| Index: Source/core/dom/TreeScope.cpp
|
| diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
|
| index 45dd8a0e991870a8dad6293ec9cfefea410871ee..6eb70111f854d9f71873a608dafd7dcf4eb9f8bd 100644
|
| --- a/Source/core/dom/TreeScope.cpp
|
| +++ b/Source/core/dom/TreeScope.cpp
|
| @@ -352,7 +352,7 @@ Element* TreeScope::adjustedFocusedElement() const
|
| Document& document = rootNode().document();
|
| Element* element = document.focusedElement();
|
| if (!element && document.page())
|
| - element = focusedFrameOwnerElement(document.page()->focusController().focusedFrame(), document.frame());
|
| + element = focusedFrameOwnerElement(toLocalFrame(document.page()->focusController().focusedFrame()), document.frame());
|
| if (!element)
|
| return 0;
|
|
|
|
|