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 |
486 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } | 491 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } |
487 virtual bool childTypeAllowed(NodeType) const { return false; } | 492 virtual bool childTypeAllowed(NodeType) const { return false; } |
488 unsigned countChildren() const; | 493 unsigned countChildren() const; |
489 | 494 |
490 bool isDescendantOf(const Node*) const; | 495 bool isDescendantOf(const Node*) const; |
491 bool contains(const Node*) const; | 496 bool contains(const Node*) const; |
492 bool containsIncludingShadowDOM(const Node*) const; | 497 bool containsIncludingShadowDOM(const Node*) const; |
493 bool containsIncludingHostElements(const Node&) const; | 498 bool containsIncludingHostElements(const Node&) const; |
494 Node* commonAncestor(const Node&, ContainerNode* (*parent)(const Node&)) con
st; | 499 Node* commonAncestor(const Node&, ContainerNode* (*parent)(const Node&)) con
st; |
495 | 500 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 void unregisterTransientMutationObserver(MutationObserverRegistration*); | 658 void unregisterTransientMutationObserver(MutationObserverRegistration*); |
654 void notifyMutationObserversNodeWillDetach(); | 659 void notifyMutationObserversNodeWillDetach(); |
655 | 660 |
656 unsigned connectedSubframeCount() const; | 661 unsigned connectedSubframeCount() const; |
657 void incrementConnectedSubframeCount(unsigned amount = 1); | 662 void incrementConnectedSubframeCount(unsigned amount = 1); |
658 void decrementConnectedSubframeCount(unsigned amount = 1); | 663 void decrementConnectedSubframeCount(unsigned amount = 1); |
659 void updateAncestorConnectedSubframeCountForInsertion() const; | 664 void updateAncestorConnectedSubframeCountForInsertion() const; |
660 | 665 |
661 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); | 666 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); |
662 HTMLSlotElement* assignedSlot() const; | 667 HTMLSlotElement* assignedSlot() const; |
663 HTMLSlotElement* assignedSlotForBinding() { updateDistribution(); return ass
ignedSlot(); } | 668 HTMLSlotElement* assignedSlotForBinding(); |
664 | 669 |
665 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 670 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
666 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 671 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
667 | 672 |
668 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } | 673 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } |
669 | 674 |
670 DECLARE_VIRTUAL_TRACE(); | 675 DECLARE_VIRTUAL_TRACE(); |
671 | 676 |
672 unsigned lengthOfContents() const; | 677 unsigned lengthOfContents() const; |
673 | 678 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 } // namespace blink | 923 } // namespace blink |
919 | 924 |
920 #ifndef NDEBUG | 925 #ifndef NDEBUG |
921 // Outside the WebCore namespace for ease of invocation from gdb. | 926 // Outside the WebCore namespace for ease of invocation from gdb. |
922 void showNode(const blink::Node*); | 927 void showNode(const blink::Node*); |
923 void showTree(const blink::Node*); | 928 void showTree(const blink::Node*); |
924 void showNodePath(const blink::Node*); | 929 void showNodePath(const blink::Node*); |
925 #endif | 930 #endif |
926 | 931 |
927 #endif // Node_h | 932 #endif // Node_h |
OLD | NEW |