OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
3 * Portions Copyright (c) 2011 Motorola Mobility, Inc. All rights reserved. | 3 * Portions Copyright (c) 2011 Motorola Mobility, Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 if (visiblePosition.isNull()) | 783 if (visiblePosition.isNull()) |
784 return false; | 784 return false; |
785 | 785 |
786 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node)) | 786 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node)) |
787 return false; | 787 return false; |
788 | 788 |
789 VisiblePosition next = visiblePosition.next(); | 789 VisiblePosition next = visiblePosition.next(); |
790 return next.isNull() || !next.deepEquivalent().deprecatedNode()->isDescendan
tOf(node); | 790 return next.isNull() || !next.deepEquivalent().deprecatedNode()->isDescendan
tOf(node); |
791 } | 791 } |
792 | 792 |
| 793 void VisiblePosition::trace(Visitor* visitor) |
| 794 { |
| 795 visitor->trace(m_deepPosition); |
| 796 } |
| 797 |
793 } // namespace WebCore | 798 } // namespace WebCore |
794 | 799 |
795 #ifndef NDEBUG | 800 #ifndef NDEBUG |
796 | 801 |
797 void showTree(const WebCore::VisiblePosition* vpos) | 802 void showTree(const WebCore::VisiblePosition* vpos) |
798 { | 803 { |
799 if (vpos) | 804 if (vpos) |
800 vpos->showTreeForThis(); | 805 vpos->showTreeForThis(); |
801 } | 806 } |
802 | 807 |
803 void showTree(const WebCore::VisiblePosition& vpos) | 808 void showTree(const WebCore::VisiblePosition& vpos) |
804 { | 809 { |
805 vpos.showTreeForThis(); | 810 vpos.showTreeForThis(); |
806 } | 811 } |
807 | 812 |
808 #endif | 813 #endif |
OLD | NEW |