| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 Element* rootEditableElement() const; | 131 Element* rootEditableElement() const; |
| 132 bool isContentEditable() const; | 132 bool isContentEditable() const; |
| 133 bool hasEditableStyle() const; | 133 bool hasEditableStyle() const; |
| 134 bool isContentRichlyEditable() const; | 134 bool isContentRichlyEditable() const; |
| 135 | 135 |
| 136 bool isValidFor(const Document&) const; | 136 bool isValidFor(const Document&) const; |
| 137 void setWithoutValidation(const PositionTemplate<Strategy>&, | 137 void setWithoutValidation(const PositionTemplate<Strategy>&, |
| 138 const PositionTemplate<Strategy>&); | 138 const PositionTemplate<Strategy>&); |
| 139 | 139 |
| 140 DEFINE_INLINE_TRACE() { | 140 DECLARE_TRACE(); |
| 141 visitor->trace(m_base); | |
| 142 visitor->trace(m_extent); | |
| 143 visitor->trace(m_start); | |
| 144 visitor->trace(m_end); | |
| 145 } | |
| 146 | 141 |
| 147 void updateIfNeeded(); | 142 void updateIfNeeded(); |
| 148 | 143 |
| 149 #ifndef NDEBUG | 144 #ifndef NDEBUG |
| 150 void showTreeForThis() const; | 145 void showTreeForThis() const; |
| 151 #endif | 146 #endif |
| 152 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); | 147 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); |
| 153 | 148 |
| 154 private: | 149 private: |
| 155 friend class SelectionAdjuster; | 150 friend class SelectionAdjuster; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 218 |
| 224 #ifndef NDEBUG | 219 #ifndef NDEBUG |
| 225 // Outside the WebCore namespace for ease of invocation from gdb. | 220 // Outside the WebCore namespace for ease of invocation from gdb. |
| 226 void showTree(const blink::VisibleSelection&); | 221 void showTree(const blink::VisibleSelection&); |
| 227 void showTree(const blink::VisibleSelection*); | 222 void showTree(const blink::VisibleSelection*); |
| 228 void showTree(const blink::VisibleSelectionInFlatTree&); | 223 void showTree(const blink::VisibleSelectionInFlatTree&); |
| 229 void showTree(const blink::VisibleSelectionInFlatTree*); | 224 void showTree(const blink::VisibleSelectionInFlatTree*); |
| 230 #endif | 225 #endif |
| 231 | 226 |
| 232 #endif // VisibleSelection_h | 227 #endif // VisibleSelection_h |
| OLD | NEW |