| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 visitor->trace(m_base); | 141 visitor->trace(m_base); |
| 142 visitor->trace(m_extent); | 142 visitor->trace(m_extent); |
| 143 visitor->trace(m_start); | 143 visitor->trace(m_start); |
| 144 visitor->trace(m_end); | 144 visitor->trace(m_end); |
| 145 } | 145 } |
| 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 static void showTreeForStartAndEnd(const PositionTemplate<Strategy>&, |
| 152 const PositionTemplate<Strategy>&); |
| 151 #endif | 153 #endif |
| 152 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); | 154 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); |
| 153 | 155 |
| 154 private: | 156 private: |
| 155 friend class SelectionAdjuster; | 157 friend class SelectionAdjuster; |
| 156 | 158 |
| 157 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&); | 159 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&); |
| 158 | 160 |
| 159 void validate(TextGranularity = CharacterGranularity); | 161 void validate(TextGranularity = CharacterGranularity); |
| 160 | 162 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 225 |
| 224 #ifndef NDEBUG | 226 #ifndef NDEBUG |
| 225 // Outside the WebCore namespace for ease of invocation from gdb. | 227 // Outside the WebCore namespace for ease of invocation from gdb. |
| 226 void showTree(const blink::VisibleSelection&); | 228 void showTree(const blink::VisibleSelection&); |
| 227 void showTree(const blink::VisibleSelection*); | 229 void showTree(const blink::VisibleSelection*); |
| 228 void showTree(const blink::VisibleSelectionInFlatTree&); | 230 void showTree(const blink::VisibleSelectionInFlatTree&); |
| 229 void showTree(const blink::VisibleSelectionInFlatTree*); | 231 void showTree(const blink::VisibleSelectionInFlatTree*); |
| 230 #endif | 232 #endif |
| 231 | 233 |
| 232 #endif // VisibleSelection_h | 234 #endif // VisibleSelection_h |
| OLD | NEW |