| 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 | 707 |
| 708 template <typename Strategy> | 708 template <typename Strategy> |
| 709 bool VisibleSelectionTemplate<Strategy>::isContentEditable() const | 709 bool VisibleSelectionTemplate<Strategy>::isContentEditable() const |
| 710 { | 710 { |
| 711 return isEditablePosition(start()); | 711 return isEditablePosition(start()); |
| 712 } | 712 } |
| 713 | 713 |
| 714 template <typename Strategy> | 714 template <typename Strategy> |
| 715 bool VisibleSelectionTemplate<Strategy>::hasEditableStyle() const | 715 bool VisibleSelectionTemplate<Strategy>::hasEditableStyle() const |
| 716 { | 716 { |
| 717 return isEditablePosition(start(), ContentIsEditable, DoNotUpdateStyle); | 717 return isEditablePosition(start(), ContentIsEditable); |
| 718 } | 718 } |
| 719 | 719 |
| 720 template <typename Strategy> | 720 template <typename Strategy> |
| 721 bool VisibleSelectionTemplate<Strategy>::isContentRichlyEditable() const | 721 bool VisibleSelectionTemplate<Strategy>::isContentRichlyEditable() const |
| 722 { | 722 { |
| 723 return isRichlyEditablePosition(toPositionInDOMTree(start())); | 723 return isRichlyEditablePosition(toPositionInDOMTree(start())); |
| 724 } | 724 } |
| 725 | 725 |
| 726 template <typename Strategy> | 726 template <typename Strategy> |
| 727 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const | 727 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 { | 908 { |
| 909 sel.showTreeForThis(); | 909 sel.showTreeForThis(); |
| 910 } | 910 } |
| 911 | 911 |
| 912 void showTree(const blink::VisibleSelectionInFlatTree* sel) | 912 void showTree(const blink::VisibleSelectionInFlatTree* sel) |
| 913 { | 913 { |
| 914 if (sel) | 914 if (sel) |
| 915 sel->showTreeForThis(); | 915 sel->showTreeForThis(); |
| 916 } | 916 } |
| 917 #endif | 917 #endif |
| OLD | NEW |