| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 void updateIfNeeded(); | 147 void updateIfNeeded(); |
| 148 | 148 |
| 149 #ifndef NDEBUG | 149 #ifndef NDEBUG |
| 150 void showTreeForThis() const; | 150 void showTreeForThis() const; |
| 151 #endif | 151 #endif |
| 152 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); | 152 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); |
| 153 | 153 |
| 154 private: | 154 private: |
| 155 friend class SelectionAdjuster; | 155 friend class SelectionAdjuster; |
| 156 friend class SelectionEditor; |
| 156 | 157 |
| 157 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&); | 158 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&); |
| 158 | 159 |
| 159 void validate(TextGranularity = CharacterGranularity); | 160 void validate(TextGranularity = CharacterGranularity); |
| 160 | 161 |
| 161 // Support methods for validate() | 162 // Support methods for validate() |
| 162 void setBaseAndExtentToDeepEquivalents(); | 163 void setBaseAndExtentToDeepEquivalents(); |
| 163 void adjustSelectionToAvoidCrossingShadowBoundaries(); | 164 void adjustSelectionToAvoidCrossingShadowBoundaries(); |
| 164 void adjustSelectionToAvoidCrossingEditingBoundaries(); | 165 void adjustSelectionToAvoidCrossingEditingBoundaries(); |
| 165 void updateSelectionType(); | 166 void updateSelectionType(); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 #ifndef NDEBUG | 225 #ifndef NDEBUG |
| 225 // Outside the WebCore namespace for ease of invocation from gdb. | 226 // Outside the WebCore namespace for ease of invocation from gdb. |
| 226 void showTree(const blink::VisibleSelection&); | 227 void showTree(const blink::VisibleSelection&); |
| 227 void showTree(const blink::VisibleSelection*); | 228 void showTree(const blink::VisibleSelection*); |
| 228 void showTree(const blink::VisibleSelectionInFlatTree&); | 229 void showTree(const blink::VisibleSelectionInFlatTree&); |
| 229 void showTree(const blink::VisibleSelectionInFlatTree*); | 230 void showTree(const blink::VisibleSelectionInFlatTree*); |
| 230 #endif | 231 #endif |
| 231 | 232 |
| 232 #endif // VisibleSelection_h | 233 #endif // VisibleSelection_h |
| OLD | NEW |