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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 bool isStyledElement() const { return getFlag(IsStyledElementFlag); } | 215 bool isStyledElement() const { return getFlag(IsStyledElementFlag); } |
216 virtual bool isAttributeNode() const { return false; } | 216 virtual bool isAttributeNode() const { return false; } |
217 virtual bool isCharacterDataNode() const { return false; } | 217 virtual bool isCharacterDataNode() const { return false; } |
218 virtual bool isFrameOwnerElement() const { return false; } | 218 virtual bool isFrameOwnerElement() const { return false; } |
219 bool isDocumentNode() const; | 219 bool isDocumentNode() const; |
220 bool isShadowRoot() const { return getFlag(IsShadowRootFlag); } | 220 bool isShadowRoot() const { return getFlag(IsShadowRootFlag); } |
221 bool inNamedFlow() const { return getFlag(InNamedFlowFlag); } | 221 bool inNamedFlow() const { return getFlag(InNamedFlowFlag); } |
222 bool hasAttrList() const { return getFlag(HasAttrListFlag); } | 222 bool hasAttrList() const { return getFlag(HasAttrListFlag); } |
223 bool hasCustomCallbacks() const { return getFlag(HasCustomCallbacksFlag); } | 223 bool hasCustomCallbacks() const { return getFlag(HasCustomCallbacksFlag); } |
224 | 224 |
| 225 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. |
| 226 Element* shadowHost() const; |
| 227 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns this. |
| 228 // Deprecated. Should use shadowHost() and check the return value. |
225 Node* shadowAncestorNode() const; | 229 Node* shadowAncestorNode() const; |
226 ShadowRoot* shadowRoot() const; | 230 ShadowRoot* shadowRoot() const; |
227 ShadowRoot* youngestShadowRoot() const; | 231 ShadowRoot* youngestShadowRoot() const; |
228 | 232 |
229 // Returns 0, a child of ShadowRoot, or a legacy shadow root. | 233 // Returns 0, a child of ShadowRoot, or a legacy shadow root. |
230 Node* nonBoundaryShadowTreeRootNode(); | 234 Node* nonBoundaryShadowTreeRootNode(); |
231 bool isInShadowTree() const; | 235 bool isInShadowTree() const; |
232 // Node's parent, shadow tree host. | 236 // Node's parent, shadow tree host. |
233 ContainerNode* parentOrHostNode() const; | 237 ContainerNode* parentOrHostNode() const; |
234 Element* parentOrHostElement() const; | 238 Element* parentOrHostElement() const; |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 864 |
861 } //namespace | 865 } //namespace |
862 | 866 |
863 #ifndef NDEBUG | 867 #ifndef NDEBUG |
864 // Outside the WebCore namespace for ease of invocation from gdb. | 868 // Outside the WebCore namespace for ease of invocation from gdb. |
865 void showTree(const WebCore::Node*); | 869 void showTree(const WebCore::Node*); |
866 void showNodePath(const WebCore::Node*); | 870 void showNodePath(const WebCore::Node*); |
867 #endif | 871 #endif |
868 | 872 |
869 #endif | 873 #endif |
OLD | NEW |