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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 bool isSameNode(Node* other) const { return this == other; } | 199 bool isSameNode(Node* other) const { return this == other; } |
200 bool isEqualNode(Node*) const; | 200 bool isEqualNode(Node*) const; |
201 bool isDefaultNamespace(const AtomicString& namespaceURI) const; | 201 bool isDefaultNamespace(const AtomicString& namespaceURI) const; |
202 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const; | 202 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const; |
203 const AtomicString& lookupNamespaceURI(const String& prefix) const; | 203 const AtomicString& lookupNamespaceURI(const String& prefix) const; |
204 | 204 |
205 String textContent(bool convertBRsToNewlines = false) const; | 205 String textContent(bool convertBRsToNewlines = false) const; |
206 void setTextContent(const String&); | 206 void setTextContent(const String&); |
207 | 207 |
208 Node& lastDescendant() const; | 208 Node& lastDescendantOrSelf() const; |
209 | 209 |
210 // Other methods (not part of DOM) | 210 // Other methods (not part of DOM) |
211 | 211 |
212 bool isElementNode() const { return getFlag(IsElementFlag); } | 212 bool isElementNode() const { return getFlag(IsElementFlag); } |
213 bool isContainerNode() const { return getFlag(IsContainerFlag); } | 213 bool isContainerNode() const { return getFlag(IsContainerFlag); } |
214 bool isTextNode() const { return getFlag(IsTextFlag); } | 214 bool isTextNode() const { return getFlag(IsTextFlag); } |
215 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } | 215 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } |
216 bool isSVGElement() const { return getFlag(IsSVGFlag); } | 216 bool isSVGElement() const { return getFlag(IsSVGFlag); } |
217 | 217 |
218 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } | 218 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 ShadowRoot* containingShadowRoot() const; | 270 ShadowRoot* containingShadowRoot() const; |
271 ShadowRoot* youngestShadowRoot() const; | 271 ShadowRoot* youngestShadowRoot() const; |
272 | 272 |
273 // Returns 0, a child of ShadowRoot, or a legacy shadow root. | 273 // Returns 0, a child of ShadowRoot, or a legacy shadow root. |
274 Node* nonBoundaryShadowTreeRootNode(); | 274 Node* nonBoundaryShadowTreeRootNode(); |
275 | 275 |
276 // Node's parent, shadow tree host. | 276 // Node's parent, shadow tree host. |
277 ContainerNode* parentOrShadowHostNode() const; | 277 ContainerNode* parentOrShadowHostNode() const; |
278 Element* parentOrShadowHostElement() const; | 278 Element* parentOrShadowHostElement() const; |
279 void setParentOrShadowHostNode(ContainerNode*); | 279 void setParentOrShadowHostNode(ContainerNode*); |
280 Node& highestAncestor() const; | 280 Node& highestAncestorOrSelf() const; |
281 | 281 |
282 // Knows about all kinds of hosts. | 282 // Knows about all kinds of hosts. |
283 ContainerNode* parentOrShadowHostOrTemplateHostNode() const; | 283 ContainerNode* parentOrShadowHostOrTemplateHostNode() const; |
284 | 284 |
285 // Returns the parent node, but 0 if the parent node is a ShadowRoot. | 285 // Returns the parent node, but 0 if the parent node is a ShadowRoot. |
286 ContainerNode* nonShadowBoundaryParentNode() const; | 286 ContainerNode* nonShadowBoundaryParentNode() const; |
287 | 287 |
288 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest
orHasDirAutoFlag); } | 288 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest
orHasDirAutoFlag); } |
289 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA
ncestorHasDirAutoFlag); } | 289 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA
ncestorHasDirAutoFlag); } |
290 | 290 |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 } // namespace WebCore | 907 } // namespace WebCore |
908 | 908 |
909 #ifndef NDEBUG | 909 #ifndef NDEBUG |
910 // Outside the WebCore namespace for ease of invocation from gdb. | 910 // Outside the WebCore namespace for ease of invocation from gdb. |
911 void showNode(const WebCore::Node*); | 911 void showNode(const WebCore::Node*); |
912 void showTree(const WebCore::Node*); | 912 void showTree(const WebCore::Node*); |
913 void showNodePath(const WebCore::Node*); | 913 void showNodePath(const WebCore::Node*); |
914 #endif | 914 #endif |
915 | 915 |
916 #endif | 916 #endif |
OLD | NEW |