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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 { | 383 { |
384 return position; | 384 return position; |
385 } | 385 } |
386 | 386 |
387 template <> | 387 template <> |
388 inline PositionInComposedTree fromPositionInDOMTree<EditingInComposedTreeStrateg
y>(const Position& position) | 388 inline PositionInComposedTree fromPositionInDOMTree<EditingInComposedTreeStrateg
y>(const Position& position) |
389 { | 389 { |
390 return toPositionInComposedTree(position); | 390 return toPositionInComposedTree(position); |
391 } | 391 } |
392 | 392 |
| 393 // These printers are available only for testing in "webkit_unit_tests", and |
| 394 // implemented in "core/testing/CoreTestPrinters.cpp". |
| 395 std::ostream& operator<<(std::ostream&, const Node&); |
| 396 std::ostream& operator<<(std::ostream&, const Node*); |
| 397 |
| 398 std::ostream& operator<<(std::ostream&, PositionAnchorType); |
| 399 std::ostream& operator<<(std::ostream&, const Position&); |
| 400 std::ostream& operator<<(std::ostream&, const PositionInComposedTree&); |
| 401 |
393 } // namespace blink | 402 } // namespace blink |
394 | 403 |
395 #ifndef NDEBUG | 404 #ifndef NDEBUG |
396 // Outside the WebCore namespace for ease of invocation from gdb. | 405 // Outside the WebCore namespace for ease of invocation from gdb. |
397 void showTree(const blink::Position&); | 406 void showTree(const blink::Position&); |
398 void showTree(const blink::Position*); | 407 void showTree(const blink::Position*); |
399 #endif | 408 #endif |
400 | 409 |
401 #endif // Position_h | 410 #endif // Position_h |
OLD | NEW |