OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 { | 400 { |
401 return position; | 401 return position; |
402 } | 402 } |
403 | 403 |
404 template <> | 404 template <> |
405 inline PositionInComposedTree fromPositionInDOMTree<EditingInComposedTreeStrateg
y>(const Position& position) | 405 inline PositionInComposedTree fromPositionInDOMTree<EditingInComposedTreeStrateg
y>(const Position& position) |
406 { | 406 { |
407 return toPositionInComposedTree(position); | 407 return toPositionInComposedTree(position); |
408 } | 408 } |
409 | 409 |
410 // TODO(yosin) We should move |inRenderedText()| to "VisibleUnits.h" for | |
411 // reduce dependency of |LayoutObject| in |Position| class. | |
412 CORE_EXPORT bool inRenderedText(const Position&); | |
413 CORE_EXPORT bool inRenderedText(const PositionInComposedTree&); | |
414 | |
415 CORE_EXPORT int uncheckedPreviousOffset(const Node*, int current); | 410 CORE_EXPORT int uncheckedPreviousOffset(const Node*, int current); |
416 CORE_EXPORT int uncheckedNextOffset(const Node*, int current); | 411 CORE_EXPORT int uncheckedNextOffset(const Node*, int current); |
417 | 412 |
418 } // namespace blink | 413 } // namespace blink |
419 | 414 |
420 #ifndef NDEBUG | 415 #ifndef NDEBUG |
421 // Outside the WebCore namespace for ease of invocation from gdb. | 416 // Outside the WebCore namespace for ease of invocation from gdb. |
422 void showTree(const blink::Position&); | 417 void showTree(const blink::Position&); |
423 void showTree(const blink::Position*); | 418 void showTree(const blink::Position*); |
424 #endif | 419 #endif |
425 | 420 |
426 #endif // Position_h | 421 #endif // Position_h |
OLD | NEW |