OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the DOM implementation for WebCore. | 2 * This file is part of the DOM implementation for WebCore. |
3 * | 3 * |
4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 private: | 133 private: |
134 MarkerType m_type; | 134 MarkerType m_type; |
135 unsigned m_startOffset; | 135 unsigned m_startOffset; |
136 unsigned m_endOffset; | 136 unsigned m_endOffset; |
137 RefPtrWillBeMember<DocumentMarkerDetails> m_details; | 137 RefPtrWillBeMember<DocumentMarkerDetails> m_details; |
138 uint32_t m_hash; | 138 uint32_t m_hash; |
139 }; | 139 }; |
140 | 140 |
141 typedef WillBeHeapVector<RawPtrWillBeMember<DocumentMarker> > DocumentMarkerVect
or; | 141 typedef WillBeHeapVector<RawPtrWillBeMember<DocumentMarker> > DocumentMarkerVect
or; |
142 | 142 |
| 143 typedef std::pair<RawPtrWillBeWeakMember<const Node>, RawPtrWillBeMember<Documen
tMarker>> NodeMarkerPair; |
| 144 typedef WillBeHeapVector<NodeMarkerPair> DocumentMarkerAndNodeVector; |
| 145 |
143 inline DocumentMarkerDetails* DocumentMarker::details() const | 146 inline DocumentMarkerDetails* DocumentMarker::details() const |
144 { | 147 { |
145 return m_details.get(); | 148 return m_details.get(); |
146 } | 149 } |
147 | 150 |
148 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D
ocumentMarkerDetails> | 151 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D
ocumentMarkerDetails> |
149 { | 152 { |
150 public: | 153 public: |
151 DocumentMarkerDetails() { } | 154 DocumentMarkerDetails() { } |
152 virtual ~DocumentMarkerDetails(); | 155 virtual ~DocumentMarkerDetails(); |
153 virtual bool isDescription() const { return false; } | 156 virtual bool isDescription() const { return false; } |
154 virtual bool isTextMatch() const { return false; } | 157 virtual bool isTextMatch() const { return false; } |
155 | 158 |
156 virtual void trace(Visitor*) { } | 159 virtual void trace(Visitor*) { } |
157 }; | 160 }; |
158 | 161 |
159 } // namespace blink | 162 } // namespace blink |
160 | 163 |
161 #endif // DocumentMarker_h | 164 #endif // DocumentMarker_h |
OLD | NEW |