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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 unsigned childNodeCount() const; | 478 unsigned childNodeCount() const; |
479 Node* childNode(unsigned index) const; | 479 Node* childNode(unsigned index) const; |
480 | 480 |
481 bool isDescendantOf(const Node*) const; | 481 bool isDescendantOf(const Node*) const; |
482 bool contains(const Node*) const; | 482 bool contains(const Node*) const; |
483 bool containsIncludingShadowDOM(const Node*) const; | 483 bool containsIncludingShadowDOM(const Node*) const; |
484 bool containsIncludingHostElements(const Node&) const; | 484 bool containsIncludingHostElements(const Node&) const; |
485 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); | 485 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); |
486 | 486 |
487 // FIXME: Remove this when crbug.com/265716 cleans up contains semantics. | 487 // FIXME: Remove this when crbug.com/265716 cleans up contains semantics. |
488 bool bindingsContains(const Node* node) const { return containsIncludingShad
owDOM(node); } | 488 bool containsForBindings(const Node* node) const { return containsIncludingS
hadowDOM(node); } |
489 | 489 |
490 // Used to determine whether range offsets use characters or node indices. | 490 // Used to determine whether range offsets use characters or node indices. |
491 virtual bool offsetInCharacters() const; | 491 virtual bool offsetInCharacters() const; |
492 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of | 492 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of |
493 // css-transform:capitalize breaking up precomposed characters and ligatures
. | 493 // css-transform:capitalize breaking up precomposed characters and ligatures
. |
494 virtual int maxCharacterOffset() const; | 494 virtual int maxCharacterOffset() const; |
495 | 495 |
496 // Whether or not a selection can be started in this object | 496 // Whether or not a selection can be started in this object |
497 virtual bool canStartSelection() const; | 497 virtual bool canStartSelection() const; |
498 | 498 |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 | 911 |
912 } // namespace WebCore | 912 } // namespace WebCore |
913 | 913 |
914 #ifndef NDEBUG | 914 #ifndef NDEBUG |
915 // Outside the WebCore namespace for ease of invocation from gdb. | 915 // Outside the WebCore namespace for ease of invocation from gdb. |
916 void showTree(const WebCore::Node*); | 916 void showTree(const WebCore::Node*); |
917 void showNodePath(const WebCore::Node*); | 917 void showNodePath(const WebCore::Node*); |
918 #endif | 918 #endif |
919 | 919 |
920 #endif | 920 #endif |
OLD | NEW |