| 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 m_deepPosition.formatForDebugger(buffer, length); | 713 m_deepPosition.formatForDebugger(buffer, length); |
| 714 } | 714 } |
| 715 | 715 |
| 716 void VisiblePosition::showTreeForThis() const | 716 void VisiblePosition::showTreeForThis() const |
| 717 { | 717 { |
| 718 m_deepPosition.showTreeForThis(); | 718 m_deepPosition.showTreeForThis(); |
| 719 } | 719 } |
| 720 | 720 |
| 721 #endif | 721 #endif |
| 722 | 722 |
| 723 PassRefPtr<Range> makeRange(const VisiblePosition &start, const VisiblePosition
&end) | 723 PassRefPtrWillBeRawPtr<Range> makeRange(const VisiblePosition &start, const Visi
blePosition &end) |
| 724 { | 724 { |
| 725 if (start.isNull() || end.isNull()) | 725 if (start.isNull() || end.isNull()) |
| 726 return nullptr; | 726 return nullptr; |
| 727 | 727 |
| 728 Position s = start.deepEquivalent().parentAnchoredEquivalent(); | 728 Position s = start.deepEquivalent().parentAnchoredEquivalent(); |
| 729 Position e = end.deepEquivalent().parentAnchoredEquivalent(); | 729 Position e = end.deepEquivalent().parentAnchoredEquivalent(); |
| 730 if (s.isNull() || e.isNull()) | 730 if (s.isNull() || e.isNull()) |
| 731 return nullptr; | 731 return nullptr; |
| 732 | 732 |
| 733 return Range::create(s.containerNode()->document(), s.containerNode(), s.off
setInContainerNode(), e.containerNode(), e.offsetInContainerNode()); | 733 return Range::create(s.containerNode()->document(), s.containerNode(), s.off
setInContainerNode(), e.containerNode(), e.offsetInContainerNode()); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 if (vpos) | 799 if (vpos) |
| 800 vpos->showTreeForThis(); | 800 vpos->showTreeForThis(); |
| 801 } | 801 } |
| 802 | 802 |
| 803 void showTree(const WebCore::VisiblePosition& vpos) | 803 void showTree(const WebCore::VisiblePosition& vpos) |
| 804 { | 804 { |
| 805 vpos.showTreeForThis(); | 805 vpos.showTreeForThis(); |
| 806 } | 806 } |
| 807 | 807 |
| 808 #endif | 808 #endif |
| OLD | NEW |