| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool operator==(const DocumentMarker& o) const | 117 bool operator==(const DocumentMarker& o) const |
| 118 { | 118 { |
| 119 return type() == o.type() && startOffset() == o.startOffset() && endOffs
et() == o.endOffset(); | 119 return type() == o.type() && startOffset() == o.startOffset() && endOffs
et() == o.endOffset(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 bool operator!=(const DocumentMarker& o) const | 122 bool operator!=(const DocumentMarker& o) const |
| 123 { | 123 { |
| 124 return !(*this == o); | 124 return !(*this == o); |
| 125 } | 125 } |
| 126 | 126 |
| 127 void trace(Visitor*); | 127 DECLARE_TRACE(); |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 MarkerType m_type; | 130 MarkerType m_type; |
| 131 unsigned m_startOffset; | 131 unsigned m_startOffset; |
| 132 unsigned m_endOffset; | 132 unsigned m_endOffset; |
| 133 RefPtrWillBeMember<DocumentMarkerDetails> m_details; | 133 RefPtrWillBeMember<DocumentMarkerDetails> m_details; |
| 134 uint32_t m_hash; | 134 uint32_t m_hash; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 using DocumentMarkerVector = WillBeHeapVector<RawPtrWillBeMember<DocumentMarker>
>; | 137 using DocumentMarkerVector = WillBeHeapVector<RawPtrWillBeMember<DocumentMarker>
>; |
| 138 | 138 |
| 139 inline DocumentMarkerDetails* DocumentMarker::details() const | 139 inline DocumentMarkerDetails* DocumentMarker::details() const |
| 140 { | 140 { |
| 141 return m_details.get(); | 141 return m_details.get(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D
ocumentMarkerDetails> | 144 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D
ocumentMarkerDetails> |
| 145 { | 145 { |
| 146 public: | 146 public: |
| 147 DocumentMarkerDetails() { } | 147 DocumentMarkerDetails() { } |
| 148 virtual ~DocumentMarkerDetails(); | 148 virtual ~DocumentMarkerDetails(); |
| 149 virtual bool isDescription() const { return false; } | 149 virtual bool isDescription() const { return false; } |
| 150 virtual bool isTextMatch() const { return false; } | 150 virtual bool isTextMatch() const { return false; } |
| 151 | 151 |
| 152 virtual void trace(Visitor*) { } | 152 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| 156 | 156 |
| 157 #endif // DocumentMarker_h | 157 #endif // DocumentMarker_h |
| OLD | NEW |