| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 static VisiblePositionTemplate<Strategy> inParentAfterNode(const Node&); | 97 static VisiblePositionTemplate<Strategy> inParentAfterNode(const Node&); |
| 98 static VisiblePositionTemplate<Strategy> inParentBeforeNode(const Node&); | 98 static VisiblePositionTemplate<Strategy> inParentBeforeNode(const Node&); |
| 99 static VisiblePositionTemplate<Strategy> lastPositionInNode(Node*); | 99 static VisiblePositionTemplate<Strategy> lastPositionInNode(Node*); |
| 100 | 100 |
| 101 DEFINE_INLINE_TRACE() | 101 DEFINE_INLINE_TRACE() |
| 102 { | 102 { |
| 103 visitor->trace(m_positionWithAffinity); | 103 visitor->trace(m_positionWithAffinity); |
| 104 } | 104 } |
| 105 | 105 |
| 106 #ifndef NDEBUG | 106 #ifndef NDEBUG |
| 107 void debugPosition(const char* msg = "") const; | |
| 108 void showTreeForThis() const; | 107 void showTreeForThis() const; |
| 109 #endif | 108 #endif |
| 110 | 109 |
| 111 private: | 110 private: |
| 112 explicit VisiblePositionTemplate(const PositionWithAffinityTemplate<Strategy
>&); | 111 explicit VisiblePositionTemplate(const PositionWithAffinityTemplate<Strategy
>&); |
| 113 | 112 |
| 114 PositionWithAffinityTemplate<Strategy> m_positionWithAffinity; | 113 PositionWithAffinityTemplate<Strategy> m_positionWithAffinity; |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisiblePositionTemplate<Editin
gStrategy>; | 116 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisiblePositionTemplate<Editin
gStrategy>; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 130 | 129 |
| 131 } // namespace blink | 130 } // namespace blink |
| 132 | 131 |
| 133 #ifndef NDEBUG | 132 #ifndef NDEBUG |
| 134 // Outside the WebCore namespace for ease of invocation from gdb. | 133 // Outside the WebCore namespace for ease of invocation from gdb. |
| 135 void showTree(const blink::VisiblePosition*); | 134 void showTree(const blink::VisiblePosition*); |
| 136 void showTree(const blink::VisiblePosition&); | 135 void showTree(const blink::VisiblePosition&); |
| 137 #endif | 136 #endif |
| 138 | 137 |
| 139 #endif // VisiblePosition_h | 138 #endif // VisiblePosition_h |
| OLD | NEW |