| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 437 |
| 438 if (useHandCursor(node, result.isOverLink())) | 438 if (useHandCursor(node, result.isOverLink())) |
| 439 return handCursor(); | 439 return handCursor(); |
| 440 | 440 |
| 441 RenderObject* renderer = node ? node->renderer() : 0; | 441 RenderObject* renderer = node ? node->renderer() : 0; |
| 442 if ((editable || (renderer && renderer->isText() && node->canStartSelection(
))) && !result.scrollbar()) | 442 if ((editable || (renderer && renderer->isText() && node->canStartSelection(
))) && !result.scrollbar()) |
| 443 return iBeam; | 443 return iBeam; |
| 444 return pointerCursor(); | 444 return pointerCursor(); |
| 445 } | 445 } |
| 446 | 446 |
| 447 ScrollableArea* EventHandler::associatedScrollableArea(const RenderLayer* layer)
const | |
| 448 { | |
| 449 if (RenderLayerScrollableArea* scrollableArea = layer->scrollableArea()) { | |
| 450 if (scrollableArea->scrollsOverflow()) | |
| 451 return scrollableArea; | |
| 452 } | |
| 453 | |
| 454 return 0; | |
| 455 } | |
| 456 | |
| 457 void EventHandler::invalidateClick() | 447 void EventHandler::invalidateClick() |
| 458 { | 448 { |
| 459 m_clickCount = 0; | 449 m_clickCount = 0; |
| 460 m_clickNode = nullptr; | 450 m_clickNode = nullptr; |
| 461 } | 451 } |
| 462 | 452 |
| 463 bool EventHandler::isInsideScrollbar(const IntPoint& windowPoint) const | 453 bool EventHandler::isInsideScrollbar(const IntPoint& windowPoint) const |
| 464 { | 454 { |
| 465 if (RenderView* renderView = m_frame->contentRenderer()) { | 455 if (RenderView* renderView = m_frame->contentRenderer()) { |
| 466 HitTestRequest request(HitTestRequest::ReadOnly); | 456 HitTestRequest request(HitTestRequest::ReadOnly); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 | 609 |
| 620 void EventHandler::focusDocumentView() | 610 void EventHandler::focusDocumentView() |
| 621 { | 611 { |
| 622 Page* page = m_frame->page(); | 612 Page* page = m_frame->page(); |
| 623 if (!page) | 613 if (!page) |
| 624 return; | 614 return; |
| 625 page->focusController().focusDocumentView(m_frame); | 615 page->focusController().focusDocumentView(m_frame); |
| 626 } | 616 } |
| 627 | 617 |
| 628 } // namespace blink | 618 } // namespace blink |
| OLD | NEW |