| 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-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 397 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
| 398 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } | 398 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } |
| 399 | 399 |
| 400 virtual bool childTypeAllowed(NodeType) const { return false; } | 400 virtual bool childTypeAllowed(NodeType) const { return false; } |
| 401 unsigned countChildren() const; | 401 unsigned countChildren() const; |
| 402 | 402 |
| 403 bool isDescendantOf(const Node*) const; | 403 bool isDescendantOf(const Node*) const; |
| 404 bool contains(const Node*) const; | 404 bool contains(const Node*) const; |
| 405 bool containsIncludingShadowDOM(const Node*) const; | 405 bool containsIncludingShadowDOM(const Node*) const; |
| 406 bool containsIncludingHostElements(const Node&) const; | 406 bool containsIncludingHostElements(const Node&) const; |
| 407 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); | |
| 408 | 407 |
| 409 // Used to determine whether range offsets use characters or node indices. | 408 // Used to determine whether range offsets use characters or node indices. |
| 410 virtual bool offsetInCharacters() const; | 409 virtual bool offsetInCharacters() const; |
| 411 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of | 410 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of |
| 412 // css-transform:capitalize breaking up precomposed characters and ligatures
. | 411 // css-transform:capitalize breaking up precomposed characters and ligatures
. |
| 413 virtual int maxCharacterOffset() const; | 412 virtual int maxCharacterOffset() const; |
| 414 | 413 |
| 415 // Whether or not a selection can be started in this object | 414 // Whether or not a selection can be started in this object |
| 416 virtual bool canStartSelection() const; | 415 virtual bool canStartSelection() const; |
| 417 | 416 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 } // namespace blink | 791 } // namespace blink |
| 793 | 792 |
| 794 #ifndef NDEBUG | 793 #ifndef NDEBUG |
| 795 // Outside the WebCore namespace for ease of invocation from gdb. | 794 // Outside the WebCore namespace for ease of invocation from gdb. |
| 796 void showNode(const blink::Node*); | 795 void showNode(const blink::Node*); |
| 797 void showTree(const blink::Node*); | 796 void showTree(const blink::Node*); |
| 798 void showNodePath(const blink::Node*); | 797 void showNodePath(const blink::Node*); |
| 799 #endif | 798 #endif |
| 800 | 799 |
| 801 #endif // Node_h | 800 #endif // Node_h |
| OLD | NEW |