| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void trace(Visitor*); | 129 void trace(Visitor*); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 MarkerType m_type; | 132 MarkerType m_type; |
| 133 unsigned m_startOffset; | 133 unsigned m_startOffset; |
| 134 unsigned m_endOffset; | 134 unsigned m_endOffset; |
| 135 RefPtrWillBeMember<DocumentMarkerDetails> m_details; | 135 RefPtrWillBeMember<DocumentMarkerDetails> m_details; |
| 136 uint32_t m_hash; | 136 uint32_t m_hash; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 typedef WillBeHeapVector<RawPtrWillBeMember<DocumentMarker> > DocumentMarkerVect
or; | 139 using DocumentMarkerVector = WillBeHeapVector<RawPtrWillBeMember<DocumentMarker>
>; |
| 140 | 140 |
| 141 inline DocumentMarkerDetails* DocumentMarker::details() const | 141 inline DocumentMarkerDetails* DocumentMarker::details() const |
| 142 { | 142 { |
| 143 return m_details.get(); | 143 return m_details.get(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D
ocumentMarkerDetails> | 146 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D
ocumentMarkerDetails> |
| 147 { | 147 { |
| 148 public: | 148 public: |
| 149 DocumentMarkerDetails() { } | 149 DocumentMarkerDetails() { } |
| 150 virtual ~DocumentMarkerDetails(); | 150 virtual ~DocumentMarkerDetails(); |
| 151 virtual bool isDescription() const { return false; } | 151 virtual bool isDescription() const { return false; } |
| 152 virtual bool isTextMatch() const { return false; } | 152 virtual bool isTextMatch() const { return false; } |
| 153 | 153 |
| 154 virtual void trace(Visitor*) { } | 154 virtual void trace(Visitor*) { } |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace blink | 157 } // namespace blink |
| 158 | 158 |
| 159 #endif // DocumentMarker_h | 159 #endif // DocumentMarker_h |
| OLD | NEW |