OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 bool shouldPaintCaret(const LayoutBlock&) const; | 173 bool shouldPaintCaret(const LayoutBlock&) const; |
174 | 174 |
175 // Bounds of (possibly transformed) caret in absolute coords | 175 // Bounds of (possibly transformed) caret in absolute coords |
176 IntRect absoluteCaretBounds(); | 176 IntRect absoluteCaretBounds(); |
177 | 177 |
178 void didChangeFocus(); | 178 void didChangeFocus(); |
179 | 179 |
180 const SelectionInDOMTree& selectionInDOMTree() const; | 180 const SelectionInDOMTree& selectionInDOMTree() const; |
181 bool isDirectional() const { return selectionInDOMTree().isDirectional(); } | 181 bool isDirectional() const { return selectionInDOMTree().isDirectional(); } |
182 | 182 |
183 // If this FrameSelection has a logical range which is still valid, this | |
184 // function return its clone. Otherwise, the return value from underlying | |
185 // VisibleSelection's firstRange() is returned. | |
186 Range* firstRange() const; | |
187 | |
188 void documentAttached(Document*); | 183 void documentAttached(Document*); |
189 | 184 |
190 void didLayout(); | 185 void didLayout(); |
191 bool isAppearanceDirty() const; | 186 bool isAppearanceDirty() const; |
192 void commitAppearanceIfNeeded(LayoutView&); | 187 void commitAppearanceIfNeeded(LayoutView&); |
193 void setCaretVisible(bool caretIsVisible); | 188 void setCaretVisible(bool caretIsVisible); |
194 void scheduleVisualUpdate() const; | 189 void scheduleVisualUpdate() const; |
195 void scheduleVisualUpdateForPaintInvalidationIfNeeded() const; | 190 void scheduleVisualUpdateForPaintInvalidationIfNeeded() const; |
196 | 191 |
197 // Paint invalidation methods delegating to FrameCaret. | 192 // Paint invalidation methods delegating to FrameCaret. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 309 |
315 } // namespace blink | 310 } // namespace blink |
316 | 311 |
317 #ifndef NDEBUG | 312 #ifndef NDEBUG |
318 // Outside the WebCore namespace for ease of invocation from gdb. | 313 // Outside the WebCore namespace for ease of invocation from gdb. |
319 void showTree(const blink::FrameSelection&); | 314 void showTree(const blink::FrameSelection&); |
320 void showTree(const blink::FrameSelection*); | 315 void showTree(const blink::FrameSelection*); |
321 #endif | 316 #endif |
322 | 317 |
323 #endif // FrameSelection_h | 318 #endif // FrameSelection_h |
OLD | NEW |