Chromium Code Reviews| Index: Source/core/page/EventHandler.cpp |
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
| index f4d0ae50709cfe5c6b698a7a9b0f560c978c98ca..873716389fb79451312c3fe12c5089da93cbe819 100644 |
| --- a/Source/core/page/EventHandler.cpp |
| +++ b/Source/core/page/EventHandler.cpp |
| @@ -839,8 +839,8 @@ HitTestResult EventHandler::hitTestResultAtPoint(const LayoutPoint& point, HitTe |
| // We always send hitTestResultAtPoint to the main frame if we have one, |
| // otherwise we might hit areas that are obscured by higher frames. |
| - if (Page* page = m_frame->page()) { |
| - LocalFrame* mainFrame = page->mainFrame()->isLocalFrame() ? page->deprecatedLocalMainFrame() : 0; |
| + if (m_frame->page()) { |
| + LocalFrame* mainFrame = m_frame->localFrameRoot(); |
|
dcheng
2014/07/10 21:14:54
Why are these changes necessary for layout/resize?
kenrb
2014/07/11 16:06:17
They are not, but I think this one line change fix
|
| if (mainFrame && m_frame != mainFrame) { |
| FrameView* frameView = m_frame->view(); |
| FrameView* mainView = mainFrame->view(); |