| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 { | 777 { |
| 778 return isRichlyEditablePosition(toPositionInDOMTree(start())); | 778 return isRichlyEditablePosition(toPositionInDOMTree(start())); |
| 779 } | 779 } |
| 780 | 780 |
| 781 template <typename Strategy> | 781 template <typename Strategy> |
| 782 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const | 782 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const |
| 783 { | 783 { |
| 784 return rootEditableElementOf(start()); | 784 return rootEditableElementOf(start()); |
| 785 } | 785 } |
| 786 | 786 |
| 787 template <typename Strategy> | |
| 788 Node* VisibleSelectionTemplate<Strategy>::nonBoundaryShadowTreeRootNode() const | |
| 789 { | |
| 790 return start().anchorNode() && !start().anchorNode()->isShadowRoot() ? start
().anchorNode()->nonBoundaryShadowTreeRootNode() : 0; | |
| 791 } | |
| 792 | |
| 793 VisibleSelectionChangeObserver::VisibleSelectionChangeObserver() | 787 VisibleSelectionChangeObserver::VisibleSelectionChangeObserver() |
| 794 { | 788 { |
| 795 } | 789 } |
| 796 | 790 |
| 797 VisibleSelectionChangeObserver::~VisibleSelectionChangeObserver() | 791 VisibleSelectionChangeObserver::~VisibleSelectionChangeObserver() |
| 798 { | 792 { |
| 799 } | 793 } |
| 800 | 794 |
| 801 template <typename Strategy> | 795 template <typename Strategy> |
| 802 void VisibleSelectionTemplate<Strategy>::setChangeObserver(VisibleSelectionChang
eObserver& observer) | 796 void VisibleSelectionTemplate<Strategy>::setChangeObserver(VisibleSelectionChang
eObserver& observer) |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 { | 992 { |
| 999 sel.showTreeForThis(); | 993 sel.showTreeForThis(); |
| 1000 } | 994 } |
| 1001 | 995 |
| 1002 void showTree(const blink::VisibleSelectionInFlatTree* sel) | 996 void showTree(const blink::VisibleSelectionInFlatTree* sel) |
| 1003 { | 997 { |
| 1004 if (sel) | 998 if (sel) |
| 1005 sel->showTreeForThis(); | 999 sel->showTreeForThis(); |
| 1006 } | 1000 } |
| 1007 #endif | 1001 #endif |
| OLD | NEW |