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 27 matching lines...) Expand all Loading... |
38 #include "core/dom/ChildNodeList.h" | 38 #include "core/dom/ChildNodeList.h" |
39 #include "core/dom/DOMImplementation.h" | 39 #include "core/dom/DOMImplementation.h" |
40 #include "core/dom/Document.h" | 40 #include "core/dom/Document.h" |
41 #include "core/dom/DocumentFragment.h" | 41 #include "core/dom/DocumentFragment.h" |
42 #include "core/dom/DocumentMarkerController.h" | 42 #include "core/dom/DocumentMarkerController.h" |
43 #include "core/dom/DocumentType.h" | 43 #include "core/dom/DocumentType.h" |
44 #include "core/dom/Element.h" | 44 #include "core/dom/Element.h" |
45 #include "core/dom/ElementRareData.h" | 45 #include "core/dom/ElementRareData.h" |
46 #include "core/dom/ElementTraversal.h" | 46 #include "core/dom/ElementTraversal.h" |
47 #include "core/dom/ExceptionCode.h" | 47 #include "core/dom/ExceptionCode.h" |
| 48 #include "core/dom/LayoutTreeBuilderTraversal.h" |
48 #include "core/dom/LiveNodeList.h" | 49 #include "core/dom/LiveNodeList.h" |
49 #include "core/dom/NodeRareData.h" | 50 #include "core/dom/NodeRareData.h" |
50 #include "core/dom/NodeRenderingTraversal.h" | |
51 #include "core/dom/NodeTraversal.h" | 51 #include "core/dom/NodeTraversal.h" |
52 #include "core/dom/ProcessingInstruction.h" | 52 #include "core/dom/ProcessingInstruction.h" |
53 #include "core/dom/Range.h" | 53 #include "core/dom/Range.h" |
54 #include "core/dom/StaticNodeList.h" | 54 #include "core/dom/StaticNodeList.h" |
55 #include "core/dom/TemplateContentDocumentFragment.h" | 55 #include "core/dom/TemplateContentDocumentFragment.h" |
56 #include "core/dom/Text.h" | 56 #include "core/dom/Text.h" |
57 #include "core/dom/TreeScopeAdopter.h" | 57 #include "core/dom/TreeScopeAdopter.h" |
58 #include "core/dom/UserActionElementSet.h" | 58 #include "core/dom/UserActionElementSet.h" |
59 #include "core/dom/WeakNodeMap.h" | 59 #include "core/dom/WeakNodeMap.h" |
60 #include "core/dom/shadow/ComposedTreeTraversal.h" | 60 #include "core/dom/shadow/ComposedTreeTraversal.h" |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 783 |
784 bool Node::shouldHaveFocusAppearance() const | 784 bool Node::shouldHaveFocusAppearance() const |
785 { | 785 { |
786 ASSERT(focused()); | 786 ASSERT(focused()); |
787 return true; | 787 return true; |
788 } | 788 } |
789 | 789 |
790 bool Node::isInert() const | 790 bool Node::isInert() const |
791 { | 791 { |
792 const HTMLDialogElement* dialog = document().activeModalDialog(); | 792 const HTMLDialogElement* dialog = document().activeModalDialog(); |
793 if (dialog && this != document() && !NodeRenderingTraversal::contains(*dialo
g, *this)) | 793 if (dialog && this != document() && !LayoutTreeBuilderTraversal::contains(*d
ialog, *this)) |
794 return true; | 794 return true; |
795 return document().ownerElement() && document().ownerElement()->isInert(); | 795 return document().ownerElement() && document().ownerElement()->isInert(); |
796 } | 796 } |
797 | 797 |
798 unsigned Node::nodeIndex() const | 798 unsigned Node::nodeIndex() const |
799 { | 799 { |
800 Node *_tempNode = previousSibling(); | 800 Node *_tempNode = previousSibling(); |
801 unsigned count = 0; | 801 unsigned count = 0; |
802 for (count = 0; _tempNode; count++) | 802 for (count = 0; _tempNode; count++) |
803 _tempNode = _tempNode->previousSibling(); | 803 _tempNode = _tempNode->previousSibling(); |
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 node->showTreeForThis(); | 2501 node->showTreeForThis(); |
2502 } | 2502 } |
2503 | 2503 |
2504 void showNodePath(const blink::Node* node) | 2504 void showNodePath(const blink::Node* node) |
2505 { | 2505 { |
2506 if (node) | 2506 if (node) |
2507 node->showNodePathForThis(); | 2507 node->showNodePathForThis(); |
2508 } | 2508 } |
2509 | 2509 |
2510 #endif | 2510 #endif |
OLD | NEW |