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