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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } | 267 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } |
268 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } | 268 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } |
269 | 269 |
270 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback
sFlag); } | 270 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback
sFlag); } |
271 | 271 |
272 bool hasSyntheticAttrChildNodes() const { return getFlag(HasSyntheticAttrChi
ldNodesFlag); } | 272 bool hasSyntheticAttrChildNodes() const { return getFlag(HasSyntheticAttrChi
ldNodesFlag); } |
273 void setHasSyntheticAttrChildNodes(bool flag) { setFlag(flag, HasSyntheticAt
trChildNodesFlag); } | 273 void setHasSyntheticAttrChildNodes(bool flag) { setFlag(flag, HasSyntheticAt
trChildNodesFlag); } |
274 | 274 |
275 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. | 275 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. |
276 Element* shadowHost() const; | 276 Element* shadowHost() const; |
277 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns this. | |
278 // Deprecated. Should use shadowHost() and check the return value. | |
279 Node* deprecatedShadowAncestorNode() const; | |
280 ShadowRoot* containingShadowRoot() const; | 277 ShadowRoot* containingShadowRoot() const; |
281 ShadowRoot* youngestShadowRoot() const; | 278 ShadowRoot* youngestShadowRoot() const; |
282 | 279 |
283 // Returns 0, a child of ShadowRoot, or a legacy shadow root. | 280 // Returns 0, a child of ShadowRoot, or a legacy shadow root. |
284 Node* nonBoundaryShadowTreeRootNode(); | 281 Node* nonBoundaryShadowTreeRootNode(); |
285 | 282 |
286 // Node's parent, shadow tree host. | 283 // Node's parent, shadow tree host. |
287 ContainerNode* parentOrShadowHostNode() const; | 284 ContainerNode* parentOrShadowHostNode() const; |
288 Element* parentOrShadowHostElement() const; | 285 Element* parentOrShadowHostElement() const; |
289 void setParentOrShadowHostNode(ContainerNode*); | 286 void setParentOrShadowHostNode(ContainerNode*); |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 } // namespace WebCore | 904 } // namespace WebCore |
908 | 905 |
909 #ifndef NDEBUG | 906 #ifndef NDEBUG |
910 // Outside the WebCore namespace for ease of invocation from gdb. | 907 // Outside the WebCore namespace for ease of invocation from gdb. |
911 void showNode(const WebCore::Node*); | 908 void showNode(const WebCore::Node*); |
912 void showTree(const WebCore::Node*); | 909 void showTree(const WebCore::Node*); |
913 void showNodePath(const WebCore::Node*); | 910 void showNodePath(const WebCore::Node*); |
914 #endif | 911 #endif |
915 | 912 |
916 #endif | 913 #endif |
OLD | NEW |