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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 // Returns 0, a child of ShadowRoot, or a legacy shadow root. | 284 // Returns 0, a child of ShadowRoot, or a legacy shadow root. |
285 Node* nonBoundaryShadowTreeRootNode(); | 285 Node* nonBoundaryShadowTreeRootNode(); |
286 | 286 |
287 // Node's parent, shadow tree host. | 287 // Node's parent, shadow tree host. |
288 ContainerNode* parentOrShadowHostNode() const; | 288 ContainerNode* parentOrShadowHostNode() const; |
289 Element* parentOrShadowHostElement() const; | 289 Element* parentOrShadowHostElement() const; |
290 void setParentOrShadowHostNode(ContainerNode*); | 290 void setParentOrShadowHostNode(ContainerNode*); |
291 Node* highestAncestor() const; | 291 Node* highestAncestor() const; |
292 | 292 |
| 293 // Knows about all kinds of hosts. |
| 294 ContainerNode* parentOrShadowHostOrTemplateHostNode() const; |
| 295 |
293 // Use when it's guaranteed to that shadowHost is 0. | 296 // Use when it's guaranteed to that shadowHost is 0. |
294 ContainerNode* parentNodeGuaranteedHostFree() const; | 297 ContainerNode* parentNodeGuaranteedHostFree() const; |
295 // Returns the parent node, but 0 if the parent node is a ShadowRoot. | 298 // Returns the parent node, but 0 if the parent node is a ShadowRoot. |
296 ContainerNode* nonShadowBoundaryParentNode() const; | 299 ContainerNode* nonShadowBoundaryParentNode() const; |
297 | 300 |
298 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest
orHasDirAutoFlag); } | 301 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest
orHasDirAutoFlag); } |
299 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA
ncestorHasDirAutoFlag); } | 302 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA
ncestorHasDirAutoFlag); } |
300 | 303 |
301 // Returns the enclosing event parent node (or self) that, when clicked, wou
ld trigger a navigation. | 304 // Returns the enclosing event parent node (or self) that, when clicked, wou
ld trigger a navigation. |
302 Node* enclosingLinkEventParentOrSelf(); | 305 Node* enclosingLinkEventParentOrSelf(); |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 | 941 |
939 } // namespace WebCore | 942 } // namespace WebCore |
940 | 943 |
941 #ifndef NDEBUG | 944 #ifndef NDEBUG |
942 // Outside the WebCore namespace for ease of invocation from gdb. | 945 // Outside the WebCore namespace for ease of invocation from gdb. |
943 void showTree(const WebCore::Node*); | 946 void showTree(const WebCore::Node*); |
944 void showNodePath(const WebCore::Node*); | 947 void showNodePath(const WebCore::Node*); |
945 #endif | 948 #endif |
946 | 949 |
947 #endif | 950 #endif |
OLD | NEW |