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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 } | 444 } |
445 | 445 |
446 template <typename Strategy> | 446 template <typename Strategy> |
447 typename Strategy::PositionType PositionAlgorithm<Strategy>::lastPositionInOrAft
erNode(Node* node) | 447 typename Strategy::PositionType PositionAlgorithm<Strategy>::lastPositionInOrAft
erNode(Node* node) |
448 { | 448 { |
449 if (!node) | 449 if (!node) |
450 return PositionType(); | 450 return PositionType(); |
451 return Strategy::editingIgnoresContent(node) ? afterNode(node) : lastPositio
nInNode(node); | 451 return Strategy::editingIgnoresContent(node) ? afterNode(node) : lastPositio
nInNode(node); |
452 } | 452 } |
453 | 453 |
454 PositionInComposedTree toPositionInComposedTree(const Position&); | 454 CORE_EXPORT PositionInComposedTree toPositionInComposedTree(const Position&); |
455 Position toPositionInDOMTree(const Position&); | 455 Position toPositionInDOMTree(const Position&); |
456 Position toPositionInDOMTree(const PositionInComposedTree&); | 456 CORE_EXPORT Position toPositionInDOMTree(const PositionInComposedTree&); |
457 | 457 |
458 } // namespace blink | 458 } // namespace blink |
459 | 459 |
460 #ifndef NDEBUG | 460 #ifndef NDEBUG |
461 // Outside the WebCore namespace for ease of invocation from gdb. | 461 // Outside the WebCore namespace for ease of invocation from gdb. |
462 void showTree(const blink::Position&); | 462 void showTree(const blink::Position&); |
463 void showTree(const blink::Position*); | 463 void showTree(const blink::Position*); |
464 #endif | 464 #endif |
465 | 465 |
466 #endif // Position_h | 466 #endif // Position_h |
OLD | NEW |