Chromium Code Reviews| Index: Source/core/dom/TreeScope.cpp |
| diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp |
| index 45dd8a0e991870a8dad6293ec9cfefea410871ee..f71ae27ea0500e2b10f16e2238925008b5eb0da4 100644 |
| --- a/Source/core/dom/TreeScope.cpp |
| +++ b/Source/core/dom/TreeScope.cpp |
| @@ -351,8 +351,9 @@ 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. |
|
dcheng
2014/03/17 18:17:44
I don't really understand what this comment has to
kenrb
2014/03/18 20:01:19
I've expanded the comment. focusedFrameOwnerElemen
|
| 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; |