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, 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
466 | 466 |
467 // Returns true if this node is associated with a document and is in its ass ociated document's | 467 // Returns true if this node is associated with a document and is in its ass ociated document's |
468 // node tree, false otherwise. | 468 // node tree, false otherwise. |
469 bool inDocument() const | 469 bool inDocument() const |
470 { | 470 { |
471 return getFlag(InDocumentFlag); | 471 return getFlag(InDocumentFlag); |
472 } | 472 } |
473 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 473 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
474 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen tFlag | IsInShadowTreeFlag)); } | 474 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen tFlag | IsInShadowTreeFlag)); } |
475 | 475 |
476 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } | |
Inactive
2014/01/24 20:14:50
Hmm. It could actually be used in:
- Source/core/d
| |
477 virtual bool childTypeAllowed(NodeType) const { return false; } | 476 virtual bool childTypeAllowed(NodeType) const { return false; } |
478 unsigned childNodeCount() const; | 477 unsigned childNodeCount() const; |
479 Node* childNode(unsigned index) const; | 478 Node* childNode(unsigned index) const; |
480 | 479 |
481 bool isDescendantOf(const Node*) const; | 480 bool isDescendantOf(const Node*) const; |
482 bool contains(const Node*) const; | 481 bool contains(const Node*) const; |
483 bool containsIncludingShadowDOM(const Node*) const; | 482 bool containsIncludingShadowDOM(const Node*) const; |
484 bool containsIncludingHostElements(const Node&) const; | 483 bool containsIncludingHostElements(const Node&) const; |
485 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); | 484 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); |
486 | 485 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
902 | 901 |
903 } // namespace WebCore | 902 } // namespace WebCore |
904 | 903 |
905 #ifndef NDEBUG | 904 #ifndef NDEBUG |
906 // Outside the WebCore namespace for ease of invocation from gdb. | 905 // Outside the WebCore namespace for ease of invocation from gdb. |
907 void showTree(const WebCore::Node*); | 906 void showTree(const WebCore::Node*); |
908 void showNodePath(const WebCore::Node*); | 907 void showNodePath(const WebCore::Node*); |
909 #endif | 908 #endif |
910 | 909 |
911 #endif | 910 #endif |
OLD | NEW |