| 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 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 } else if (eventType == EventTypeNames::textInput) { | 1473 } else if (eventType == EventTypeNames::textInput) { |
| 1474 if (event->hasInterface(EventNames::TextEvent)) { | 1474 if (event->hasInterface(EventNames::TextEvent)) { |
| 1475 if (LocalFrame* frame = document().frame()) | 1475 if (LocalFrame* frame = document().frame()) |
| 1476 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e
vent)); | 1476 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e
vent)); |
| 1477 } | 1477 } |
| 1478 } else if (event->type() == EventTypeNames::webkitEditableContentChanged) { | 1478 } else if (event->type() == EventTypeNames::webkitEditableContentChanged) { |
| 1479 dispatchInputEvent(); | 1479 dispatchInputEvent(); |
| 1480 } | 1480 } |
| 1481 } | 1481 } |
| 1482 | 1482 |
| 1483 bool Node::willRespondToMouseMoveEvents() | |
| 1484 { | |
| 1485 return hasEventListeners(EventTypeNames::mousemove) || hasEventListeners(Eve
ntTypeNames::mouseover) || hasEventListeners(EventTypeNames::mouseout); | |
| 1486 } | |
| 1487 | |
| 1488 bool Node::willRespondToMouseClickEvents() | |
| 1489 { | |
| 1490 return isContentEditable(UserSelectAllIsAlwaysNonEditable) || hasEventListen
ers(EventTypeNames::mouseup) || hasEventListeners(EventTypeNames::mousedown) ||
hasEventListeners(EventTypeNames::click) || hasEventListeners(EventTypeNames::DO
MActivate); | |
| 1491 } | |
| 1492 | |
| 1493 #if !ENABLE(OILPAN) | 1483 #if !ENABLE(OILPAN) |
| 1494 // This is here for inlining | 1484 // This is here for inlining |
| 1495 inline void TreeScope::removedLastRefToScope() | 1485 inline void TreeScope::removedLastRefToScope() |
| 1496 { | 1486 { |
| 1497 ASSERT_WITH_SECURITY_IMPLICATION(!deletionHasBegun()); | 1487 ASSERT_WITH_SECURITY_IMPLICATION(!deletionHasBegun()); |
| 1498 if (m_guardRefCount) { | 1488 if (m_guardRefCount) { |
| 1499 // If removing a child removes the last self-only ref, we don't | 1489 // If removing a child removes the last self-only ref, we don't |
| 1500 // want the scope to be destructed until after | 1490 // want the scope to be destructed until after |
| 1501 // removeDetachedChildren returns, so we guard ourselves with an | 1491 // removeDetachedChildren returns, so we guard ourselves with an |
| 1502 // extra self-only ref. | 1492 // extra self-only ref. |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1654 node->showTreeForThis(); | 1644 node->showTreeForThis(); |
| 1655 } | 1645 } |
| 1656 | 1646 |
| 1657 void showNodePath(const blink::Node* node) | 1647 void showNodePath(const blink::Node* node) |
| 1658 { | 1648 { |
| 1659 if (node) | 1649 if (node) |
| 1660 node->showNodePathForThis(); | 1650 node->showNodePathForThis(); |
| 1661 } | 1651 } |
| 1662 | 1652 |
| 1663 #endif | 1653 #endif |
| OLD | NEW |