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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 321 |
322 FrameViewBase* frameViewBase = toLayoutPart(layoutObject)->frameViewBase(); | 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.isOverFrameViewBase()) |
332 return nullptr; | 332 return nullptr; |
333 return subframeForTargetNode(hitTestResult.innerNode()); | 333 return subframeForTargetNode(hitTestResult.innerNode()); |
334 } | 334 } |
335 | 335 |
336 static bool isSubmitImage(Node* node) { | 336 static bool isSubmitImage(Node* node) { |
337 return isHTMLInputElement(node) && | 337 return isHTMLInputElement(node) && |
338 toHTMLInputElement(node)->type() == InputTypeNames::image; | 338 toHTMLInputElement(node)->type() == InputTypeNames::image; |
339 } | 339 } |
340 | 340 |
341 bool EventHandler::useHandCursor(Node* node, bool isOverLink) { | 341 bool EventHandler::useHandCursor(Node* node, bool isOverLink) { |
(...skipping 1752 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 |