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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 104 } |
105 TextAffinity affinity() const { return m_positionWithAffinity.affinity(); } | 105 TextAffinity affinity() const { return m_positionWithAffinity.affinity(); } |
106 | 106 |
107 static VisiblePositionTemplate<Strategy> afterNode(Node*); | 107 static VisiblePositionTemplate<Strategy> afterNode(Node*); |
108 static VisiblePositionTemplate<Strategy> beforeNode(Node*); | 108 static VisiblePositionTemplate<Strategy> beforeNode(Node*); |
109 static VisiblePositionTemplate<Strategy> firstPositionInNode(Node*); | 109 static VisiblePositionTemplate<Strategy> firstPositionInNode(Node*); |
110 static VisiblePositionTemplate<Strategy> inParentAfterNode(const Node&); | 110 static VisiblePositionTemplate<Strategy> inParentAfterNode(const Node&); |
111 static VisiblePositionTemplate<Strategy> inParentBeforeNode(const Node&); | 111 static VisiblePositionTemplate<Strategy> inParentBeforeNode(const Node&); |
112 static VisiblePositionTemplate<Strategy> lastPositionInNode(Node*); | 112 static VisiblePositionTemplate<Strategy> lastPositionInNode(Node*); |
113 | 113 |
114 DEFINE_INLINE_TRACE() { visitor->trace(m_positionWithAffinity); } | 114 DECLARE_TRACE(); |
115 | 115 |
116 #ifndef NDEBUG | 116 #ifndef NDEBUG |
117 void showTreeForThis() const; | 117 void showTreeForThis() const; |
118 #endif | 118 #endif |
119 | 119 |
120 private: | 120 private: |
121 explicit VisiblePositionTemplate( | 121 explicit VisiblePositionTemplate( |
122 const PositionWithAffinityTemplate<Strategy>&); | 122 const PositionWithAffinityTemplate<Strategy>&); |
123 | 123 |
124 PositionWithAffinityTemplate<Strategy> m_positionWithAffinity; | 124 PositionWithAffinityTemplate<Strategy> m_positionWithAffinity; |
(...skipping 28 matching lines...) Expand all Loading... |
153 | 153 |
154 } // namespace blink | 154 } // namespace blink |
155 | 155 |
156 #ifndef NDEBUG | 156 #ifndef NDEBUG |
157 // Outside the WebCore namespace for ease of invocation from gdb. | 157 // Outside the WebCore namespace for ease of invocation from gdb. |
158 void showTree(const blink::VisiblePosition*); | 158 void showTree(const blink::VisiblePosition*); |
159 void showTree(const blink::VisiblePosition&); | 159 void showTree(const blink::VisiblePosition&); |
160 #endif | 160 #endif |
161 | 161 |
162 #endif // VisiblePosition_h | 162 #endif // VisiblePosition_h |
OLD | NEW |