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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 bool isDocumentNode() const; | 206 bool isDocumentNode() const; |
207 bool isTreeScope() const; | 207 bool isTreeScope() const; |
208 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } | 208 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } |
209 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } | 209 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } |
210 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } | 210 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } |
211 | 211 |
212 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. | 212 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. |
213 Element* shadowHost() const; | 213 Element* shadowHost() const; |
214 ShadowRoot* containingShadowRoot() const; | 214 ShadowRoot* containingShadowRoot() const; |
215 ShadowRoot* youngestShadowRoot() const; | 215 ShadowRoot* shadowRoot() const; |
216 | 216 |
217 // Returns 0, a child of ShadowRoot, or a legacy shadow root. | 217 // Returns 0, a child of ShadowRoot, or a legacy shadow root. |
218 Node* nonBoundaryShadowTreeRootNode(); | 218 Node* nonBoundaryShadowTreeRootNode(); |
219 | 219 |
220 // Node's parent, shadow tree host. | 220 // Node's parent, shadow tree host. |
221 ContainerNode* parentOrShadowHostNode() const; | 221 ContainerNode* parentOrShadowHostNode() const; |
222 Element* parentOrShadowHostElement() const; | 222 Element* parentOrShadowHostElement() const; |
223 void setParentOrShadowHostNode(ContainerNode*); | 223 void setParentOrShadowHostNode(ContainerNode*); |
224 | 224 |
225 // Knows about all kinds of hosts. | 225 // Knows about all kinds of hosts. |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 } // namespace blink | 724 } // namespace blink |
725 | 725 |
726 #ifndef NDEBUG | 726 #ifndef NDEBUG |
727 // Outside the WebCore namespace for ease of invocation from gdb. | 727 // Outside the WebCore namespace for ease of invocation from gdb. |
728 void showNode(const blink::Node*); | 728 void showNode(const blink::Node*); |
729 void showTree(const blink::Node*); | 729 void showTree(const blink::Node*); |
730 void showNodePath(const blink::Node*); | 730 void showNodePath(const blink::Node*); |
731 #endif | 731 #endif |
732 | 732 |
733 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ | 733 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ |
OLD | NEW |