| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 bool Node::isMouseFocusable() const | 919 bool Node::isMouseFocusable() const |
| 920 { | 920 { |
| 921 return isFocusable(); | 921 return isFocusable(); |
| 922 } | 922 } |
| 923 | 923 |
| 924 Node* Node::focusDelegate() | 924 Node* Node::focusDelegate() |
| 925 { | 925 { |
| 926 return this; | 926 return this; |
| 927 } | 927 } |
| 928 | 928 |
| 929 bool Node::shouldHaveFocusAppearance() const |
| 930 { |
| 931 ASSERT(focused()); |
| 932 return true; |
| 933 } |
| 934 |
| 929 unsigned Node::nodeIndex() const | 935 unsigned Node::nodeIndex() const |
| 930 { | 936 { |
| 931 Node *_tempNode = previousSibling(); | 937 Node *_tempNode = previousSibling(); |
| 932 unsigned count=0; | 938 unsigned count=0; |
| 933 for ( count=0; _tempNode; count++ ) | 939 for ( count=0; _tempNode; count++ ) |
| 934 _tempNode = _tempNode->previousSibling(); | 940 _tempNode = _tempNode->previousSibling(); |
| 935 return count; | 941 return count; |
| 936 } | 942 } |
| 937 | 943 |
| 938 template<unsigned type> | 944 template<unsigned type> |
| (...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 startNode = startNode->parentOrShadowHostNode(); | 2555 startNode = startNode->parentOrShadowHostNode(); |
| 2550 | 2556 |
| 2551 if (startNode && startNode->renderer()) | 2557 if (startNode && startNode->renderer()) |
| 2552 if (Frame* frame = document()->frame()) | 2558 if (Frame* frame = document()->frame()) |
| 2553 frame->eventHandler()->defaultWheelEventHandler(startNode, wheel
Event); | 2559 frame->eventHandler()->defaultWheelEventHandler(startNode, wheel
Event); |
| 2554 } else if (event->type() == eventNames().webkitEditableContentChangedEvent)
{ | 2560 } else if (event->type() == eventNames().webkitEditableContentChangedEvent)
{ |
| 2555 dispatchInputEvent(); | 2561 dispatchInputEvent(); |
| 2556 } | 2562 } |
| 2557 } | 2563 } |
| 2558 | 2564 |
| 2565 void Node::willCallDefaultEventHandler(const Event&) |
| 2566 { |
| 2567 } |
| 2568 |
| 2559 bool Node::willRespondToMouseMoveEvents() | 2569 bool Node::willRespondToMouseMoveEvents() |
| 2560 { | 2570 { |
| 2561 if (isDisabledFormControl(this)) | 2571 if (isDisabledFormControl(this)) |
| 2562 return false; | 2572 return false; |
| 2563 return hasEventListeners(eventNames().mousemoveEvent) || hasEventListeners(e
ventNames().mouseoverEvent) || hasEventListeners(eventNames().mouseoutEvent); | 2573 return hasEventListeners(eventNames().mousemoveEvent) || hasEventListeners(e
ventNames().mouseoverEvent) || hasEventListeners(eventNames().mouseoutEvent); |
| 2564 } | 2574 } |
| 2565 | 2575 |
| 2566 bool Node::willRespondToMouseClickEvents() | 2576 bool Node::willRespondToMouseClickEvents() |
| 2567 { | 2577 { |
| 2568 if (isDisabledFormControl(this)) | 2578 if (isDisabledFormControl(this)) |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2762 node->showTreeForThis(); | 2772 node->showTreeForThis(); |
| 2763 } | 2773 } |
| 2764 | 2774 |
| 2765 void showNodePath(const WebCore::Node* node) | 2775 void showNodePath(const WebCore::Node* node) |
| 2766 { | 2776 { |
| 2767 if (node) | 2777 if (node) |
| 2768 node->showNodePathForThis(); | 2778 node->showNodePathForThis(); |
| 2769 } | 2779 } |
| 2770 | 2780 |
| 2771 #endif | 2781 #endif |
| OLD | NEW |