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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 Position base() const { | 198 Position base() const { |
199 return computeVisibleSelectionInDOMTreeDeprecated().base(); | 199 return computeVisibleSelectionInDOMTreeDeprecated().base(); |
200 } | 200 } |
201 Position extent() const { | 201 Position extent() const { |
202 return computeVisibleSelectionInDOMTreeDeprecated().extent(); | 202 return computeVisibleSelectionInDOMTreeDeprecated().extent(); |
203 } | 203 } |
204 Position start() const { | 204 Position start() const { |
205 return computeVisibleSelectionInDOMTreeDeprecated().start(); | 205 return computeVisibleSelectionInDOMTreeDeprecated().start(); |
206 } | 206 } |
207 Position end() const { | |
208 return computeVisibleSelectionInDOMTreeDeprecated().end(); | |
209 } | |
210 | 207 |
211 // Returns true if specified layout block should paint caret. This function is | 208 // Returns true if specified layout block should paint caret. This function is |
212 // called during painting only. | 209 // called during painting only. |
213 bool shouldPaintCaret(const LayoutBlock&) const; | 210 bool shouldPaintCaret(const LayoutBlock&) const; |
214 | 211 |
215 // Bounds of (possibly transformed) caret in absolute coords | 212 // Bounds of (possibly transformed) caret in absolute coords |
216 IntRect absoluteCaretBounds(); | 213 IntRect absoluteCaretBounds(); |
217 | 214 |
218 void didChangeFocus(); | 215 void didChangeFocus(); |
219 | 216 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 367 |
371 } // namespace blink | 368 } // namespace blink |
372 | 369 |
373 #ifndef NDEBUG | 370 #ifndef NDEBUG |
374 // Outside the WebCore namespace for ease of invocation from gdb. | 371 // Outside the WebCore namespace for ease of invocation from gdb. |
375 void showTree(const blink::FrameSelection&); | 372 void showTree(const blink::FrameSelection&); |
376 void showTree(const blink::FrameSelection*); | 373 void showTree(const blink::FrameSelection*); |
377 #endif | 374 #endif |
378 | 375 |
379 #endif // FrameSelection_h | 376 #endif // FrameSelection_h |
OLD | NEW |