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