| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } | 492 bool isDocumentTypeNode() const { return nodeType() == DOCUMENT_TYPE_NODE; } |
| 493 virtual bool childTypeAllowed(NodeType) const { return false; } | 493 virtual bool childTypeAllowed(NodeType) const { return false; } |
| 494 unsigned childNodeCount() const; | 494 unsigned childNodeCount() const; |
| 495 Node* childNode(unsigned index) const; | 495 Node* childNode(unsigned index) const; |
| 496 | 496 |
| 497 void checkSetPrefix(const AtomicString& prefix, ExceptionState&); | 497 void checkSetPrefix(const AtomicString& prefix, ExceptionState&); |
| 498 bool isDescendantOf(const Node*) const; | 498 bool isDescendantOf(const Node*) const; |
| 499 bool contains(const Node*) const; | 499 bool contains(const Node*) const; |
| 500 bool containsIncludingShadowDOM(const Node*) const; | 500 bool containsIncludingShadowDOM(const Node*) const; |
| 501 bool containsIncludingHostElements(const Node&) const; | 501 bool containsIncludingHostElements(const Node&) const; |
| 502 Node* commonAncestorOverShadowBoundary(const Node&); | 502 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); |
| 503 | 503 |
| 504 // FIXME: Remove this when crbug.com/265716 cleans up contains semantics. | 504 // FIXME: Remove this when crbug.com/265716 cleans up contains semantics. |
| 505 bool bindingsContains(const Node* node) const { return containsIncludingShad
owDOM(node); } | 505 bool bindingsContains(const Node* node) const { return containsIncludingShad
owDOM(node); } |
| 506 | 506 |
| 507 // Used to determine whether range offsets use characters or node indices. | 507 // Used to determine whether range offsets use characters or node indices. |
| 508 virtual bool offsetInCharacters() const; | 508 virtual bool offsetInCharacters() const; |
| 509 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of | 509 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of |
| 510 // css-transform:capitalize breaking up precomposed characters and ligatures
. | 510 // css-transform:capitalize breaking up precomposed characters and ligatures
. |
| 511 virtual int maxCharacterOffset() const; | 511 virtual int maxCharacterOffset() const; |
| 512 | 512 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 | 948 |
| 949 } // namespace WebCore | 949 } // namespace WebCore |
| 950 | 950 |
| 951 #ifndef NDEBUG | 951 #ifndef NDEBUG |
| 952 // Outside the WebCore namespace for ease of invocation from gdb. | 952 // Outside the WebCore namespace for ease of invocation from gdb. |
| 953 void showTree(const WebCore::Node*); | 953 void showTree(const WebCore::Node*); |
| 954 void showNodePath(const WebCore::Node*); | 954 void showNodePath(const WebCore::Node*); |
| 955 #endif | 955 #endif |
| 956 | 956 |
| 957 #endif | 957 #endif |
| OLD | NEW |