| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 312 } |
| 313 | 313 |
| 314 static LocalFrame* subframeForTargetNode(Node* node) { | 314 static LocalFrame* subframeForTargetNode(Node* node) { |
| 315 if (!node) | 315 if (!node) |
| 316 return nullptr; | 316 return nullptr; |
| 317 | 317 |
| 318 LayoutObject* layoutObject = node->layoutObject(); | 318 LayoutObject* layoutObject = node->layoutObject(); |
| 319 if (!layoutObject || !layoutObject->isLayoutPart()) | 319 if (!layoutObject || !layoutObject->isLayoutPart()) |
| 320 return nullptr; | 320 return nullptr; |
| 321 | 321 |
| 322 FrameViewBase* frameViewBase = toLayoutPart(layoutObject)->widget(); | 322 FrameViewBase* frameViewBase = toLayoutPart(layoutObject)->frameViewBase(); |
| 323 if (!frameViewBase || !frameViewBase->isFrameView()) | 323 if (!frameViewBase || !frameViewBase->isFrameView()) |
| 324 return nullptr; | 324 return nullptr; |
| 325 | 325 |
| 326 return &toFrameView(frameViewBase)->frame(); | 326 return &toFrameView(frameViewBase)->frame(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 static LocalFrame* subframeForHitTestResult( | 329 static LocalFrame* subframeForHitTestResult( |
| 330 const MouseEventWithHitTestResults& hitTestResult) { | 330 const MouseEventWithHitTestResults& hitTestResult) { |
| 331 if (!hitTestResult.isOverWidget()) | 331 if (!hitTestResult.isOverWidget()) |
| 332 return nullptr; | 332 return nullptr; |
| (...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2094 } | 2094 } |
| 2095 | 2095 |
| 2096 FrameHost* EventHandler::frameHost() const { | 2096 FrameHost* EventHandler::frameHost() const { |
| 2097 if (!m_frame->page()) | 2097 if (!m_frame->page()) |
| 2098 return nullptr; | 2098 return nullptr; |
| 2099 | 2099 |
| 2100 return &m_frame->page()->frameHost(); | 2100 return &m_frame->page()->frameHost(); |
| 2101 } | 2101 } |
| 2102 | 2102 |
| 2103 } // namespace blink | 2103 } // namespace blink |
| OLD | NEW |