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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 return getFlag(InDocumentFlag); | 483 return getFlag(InDocumentFlag); |
484 } | 484 } |
485 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 485 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
486 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } | 486 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } |
487 | 487 |
488 ElementShadow* parentElementShadow() const; | 488 ElementShadow* parentElementShadow() const; |
489 bool isInV1ShadowTree() const; | 489 bool isInV1ShadowTree() const; |
490 bool isInV0ShadowTree() const; | 490 bool isInV0ShadowTree() const; |
491 bool isChildOfV1ShadowHost() const; | 491 bool isChildOfV1ShadowHost() const; |
492 bool isChildOfV0ShadowHost() const; | 492 bool isChildOfV0ShadowHost() const; |
| 493 bool isSlotAssignable() const { return isTextNode() || isElementNode(); } |
493 | 494 |
494 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } | 495 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } |
495 virtual bool childTypeAllowed(NodeType) const { return false; } | 496 virtual bool childTypeAllowed(NodeType) const { return false; } |
496 unsigned countChildren() const; | 497 unsigned countChildren() const; |
497 | 498 |
498 bool isDescendantOf(const Node*) const; | 499 bool isDescendantOf(const Node*) const; |
499 bool contains(const Node*) const; | 500 bool contains(const Node*) const; |
500 bool containsIncludingShadowDOM(const Node*) const; | 501 bool containsIncludingShadowDOM(const Node*) const; |
501 bool containsIncludingHostElements(const Node&) const; | 502 bool containsIncludingHostElements(const Node&) const; |
502 Node* commonAncestor(const Node&, ContainerNode* (*parent)(const Node&)) con
st; | 503 Node* commonAncestor(const Node&, ContainerNode* (*parent)(const Node&)) con
st; |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 } // namespace blink | 928 } // namespace blink |
928 | 929 |
929 #ifndef NDEBUG | 930 #ifndef NDEBUG |
930 // Outside the WebCore namespace for ease of invocation from gdb. | 931 // Outside the WebCore namespace for ease of invocation from gdb. |
931 void showNode(const blink::Node*); | 932 void showNode(const blink::Node*); |
932 void showTree(const blink::Node*); | 933 void showTree(const blink::Node*); |
933 void showNodePath(const blink::Node*); | 934 void showNodePath(const blink::Node*); |
934 #endif | 935 #endif |
935 | 936 |
936 #endif // Node_h | 937 #endif // Node_h |
OLD | NEW |