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