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