| 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-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 476 |
| 477 // Returns true if this node is associated with a document and is in its ass
ociated document's | 477 // Returns true if this node is associated with a document and is in its ass
ociated document's |
| 478 // node tree, false otherwise. | 478 // node tree, false otherwise. |
| 479 bool inDocument() const | 479 bool inDocument() const |
| 480 { | 480 { |
| 481 return getFlag(InDocumentFlag); | 481 return getFlag(InDocumentFlag); |
| 482 } | 482 } |
| 483 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 483 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
| 484 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } | 484 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } |
| 485 | 485 |
| 486 bool isInV1ShadowTree() const; | |
| 487 bool isInV0ShadowTree() const; | |
| 488 bool isChildOfV1ShadowHost() const; | |
| 489 bool isChildOfV0ShadowHost() const; | |
| 490 | |
| 491 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } | 486 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } |
| 492 virtual bool childTypeAllowed(NodeType) const { return false; } | 487 virtual bool childTypeAllowed(NodeType) const { return false; } |
| 493 unsigned countChildren() const; | 488 unsigned countChildren() const; |
| 494 | 489 |
| 495 bool isDescendantOf(const Node*) const; | 490 bool isDescendantOf(const Node*) const; |
| 496 bool contains(const Node*) const; | 491 bool contains(const Node*) const; |
| 497 bool containsIncludingShadowDOM(const Node*) const; | 492 bool containsIncludingShadowDOM(const Node*) const; |
| 498 bool containsIncludingHostElements(const Node&) const; | 493 bool containsIncludingHostElements(const Node&) const; |
| 499 Node* commonAncestor(const Node&, ContainerNode* (*parent)(const Node&)) con
st; | 494 Node* commonAncestor(const Node&, ContainerNode* (*parent)(const Node&)) con
st; |
| 500 | 495 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 void unregisterTransientMutationObserver(MutationObserverRegistration*); | 653 void unregisterTransientMutationObserver(MutationObserverRegistration*); |
| 659 void notifyMutationObserversNodeWillDetach(); | 654 void notifyMutationObserversNodeWillDetach(); |
| 660 | 655 |
| 661 unsigned connectedSubframeCount() const; | 656 unsigned connectedSubframeCount() const; |
| 662 void incrementConnectedSubframeCount(unsigned amount = 1); | 657 void incrementConnectedSubframeCount(unsigned amount = 1); |
| 663 void decrementConnectedSubframeCount(unsigned amount = 1); | 658 void decrementConnectedSubframeCount(unsigned amount = 1); |
| 664 void updateAncestorConnectedSubframeCountForInsertion() const; | 659 void updateAncestorConnectedSubframeCountForInsertion() const; |
| 665 | 660 |
| 666 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); | 661 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); |
| 667 HTMLSlotElement* assignedSlot() const; | 662 HTMLSlotElement* assignedSlot() const; |
| 668 HTMLSlotElement* assignedSlotForBinding(); | 663 HTMLSlotElement* assignedSlotForBinding() { updateDistribution(); return ass
ignedSlot(); } |
| 669 | 664 |
| 670 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 665 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
| 671 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 666 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
| 672 | 667 |
| 673 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } | 668 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } |
| 674 | 669 |
| 675 DECLARE_VIRTUAL_TRACE(); | 670 DECLARE_VIRTUAL_TRACE(); |
| 676 | 671 |
| 677 unsigned lengthOfContents() const; | 672 unsigned lengthOfContents() const; |
| 678 | 673 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 } // namespace blink | 918 } // namespace blink |
| 924 | 919 |
| 925 #ifndef NDEBUG | 920 #ifndef NDEBUG |
| 926 // Outside the WebCore namespace for ease of invocation from gdb. | 921 // Outside the WebCore namespace for ease of invocation from gdb. |
| 927 void showNode(const blink::Node*); | 922 void showNode(const blink::Node*); |
| 928 void showTree(const blink::Node*); | 923 void showTree(const blink::Node*); |
| 929 void showNodePath(const blink::Node*); | 924 void showNodePath(const blink::Node*); |
| 930 #endif | 925 #endif |
| 931 | 926 |
| 932 #endif // Node_h | 927 #endif // Node_h |
| OLD | NEW |