| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 #include "core/events/EventListener.h" | 68 #include "core/events/EventListener.h" |
| 69 #include "core/events/GestureEvent.h" | 69 #include "core/events/GestureEvent.h" |
| 70 #include "core/events/KeyboardEvent.h" | 70 #include "core/events/KeyboardEvent.h" |
| 71 #include "core/events/MouseEvent.h" | 71 #include "core/events/MouseEvent.h" |
| 72 #include "core/events/MutationEvent.h" | 72 #include "core/events/MutationEvent.h" |
| 73 #include "core/events/TextEvent.h" | 73 #include "core/events/TextEvent.h" |
| 74 #include "core/events/TouchEvent.h" | 74 #include "core/events/TouchEvent.h" |
| 75 #include "core/events/UIEvent.h" | 75 #include "core/events/UIEvent.h" |
| 76 #include "core/events/WheelEvent.h" | 76 #include "core/events/WheelEvent.h" |
| 77 #include "core/frame/EventHandlerRegistry.h" | 77 #include "core/frame/EventHandlerRegistry.h" |
| 78 #include "core/frame/FrameView.h" |
| 78 #include "core/frame/LocalDOMWindow.h" | 79 #include "core/frame/LocalDOMWindow.h" |
| 79 #include "core/frame/LocalFrame.h" | 80 #include "core/frame/LocalFrame.h" |
| 80 #include "core/frame/Settings.h" | 81 #include "core/frame/Settings.h" |
| 81 #include "core/html/HTMLAnchorElement.h" | 82 #include "core/html/HTMLAnchorElement.h" |
| 82 #include "core/html/HTMLDialogElement.h" | 83 #include "core/html/HTMLDialogElement.h" |
| 83 #include "core/html/HTMLFrameOwnerElement.h" | 84 #include "core/html/HTMLFrameOwnerElement.h" |
| 84 #include "core/html/HTMLStyleElement.h" | 85 #include "core/html/HTMLStyleElement.h" |
| 85 #include "core/page/ContextMenuController.h" | 86 #include "core/page/ContextMenuController.h" |
| 86 #include "core/page/EventHandler.h" | 87 #include "core/page/EventHandler.h" |
| 87 #include "core/page/Page.h" | 88 #include "core/page/Page.h" |
| (...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 return; | 1412 return; |
| 1412 } | 1413 } |
| 1413 case DOCUMENT_NODE: | 1414 case DOCUMENT_NODE: |
| 1414 case DOCUMENT_TYPE_NODE: | 1415 case DOCUMENT_TYPE_NODE: |
| 1415 // Do nothing. | 1416 // Do nothing. |
| 1416 return; | 1417 return; |
| 1417 } | 1418 } |
| 1418 ASSERT_NOT_REACHED(); | 1419 ASSERT_NOT_REACHED(); |
| 1419 } | 1420 } |
| 1420 | 1421 |
| 1422 const AtomicString& Node::computedRole() |
| 1423 { |
| 1424 document().topDocument().view()->updateLayoutAndStyleIfNeededRecursive(); |
| 1425 ScopedAXObjectCache cache(document()); |
| 1426 return cache->computedRoleForNode(this); |
| 1427 } |
| 1428 |
| 1429 const String Node::computedText() |
| 1430 { |
| 1431 document().topDocument().view()->updateLayoutAndStyleIfNeededRecursive(); |
| 1432 ScopedAXObjectCache cache(document()); |
| 1433 return cache->computedTextForNode(this); |
| 1434 } |
| 1435 |
| 1421 bool Node::offsetInCharacters() const | 1436 bool Node::offsetInCharacters() const |
| 1422 { | 1437 { |
| 1423 return false; | 1438 return false; |
| 1424 } | 1439 } |
| 1425 | 1440 |
| 1426 unsigned short Node::compareDocumentPosition(const Node* otherNode, ShadowTreesT
reatment treatment) const | 1441 unsigned short Node::compareDocumentPosition(const Node* otherNode, ShadowTreesT
reatment treatment) const |
| 1427 { | 1442 { |
| 1428 // It is not clear what should be done if |otherNode| is nullptr. | 1443 // It is not clear what should be done if |otherNode| is nullptr. |
| 1429 if (!otherNode) | 1444 if (!otherNode) |
| 1430 return DOCUMENT_POSITION_DISCONNECTED; | 1445 return DOCUMENT_POSITION_DISCONNECTED; |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2460 node->showTreeForThis(); | 2475 node->showTreeForThis(); |
| 2461 } | 2476 } |
| 2462 | 2477 |
| 2463 void showNodePath(const blink::Node* node) | 2478 void showNodePath(const blink::Node* node) |
| 2464 { | 2479 { |
| 2465 if (node) | 2480 if (node) |
| 2466 node->showNodePathForThis(); | 2481 node->showNodePathForThis(); |
| 2467 } | 2482 } |
| 2468 | 2483 |
| 2469 #endif | 2484 #endif |
| OLD | NEW |