OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 ASSERT(m_type == StringType); | 139 ASSERT(m_type == StringType); |
140 return m_string; | 140 return m_string; |
141 } | 141 } |
142 | 142 |
143 int64_t IDBAny::integer() const | 143 int64_t IDBAny::integer() const |
144 { | 144 { |
145 ASSERT(m_type == IntegerType); | 145 ASSERT(m_type == IntegerType); |
146 return m_integer; | 146 return m_integer; |
147 } | 147 } |
148 | 148 |
149 IDBAny::IDBAny(PassRefPtr<DOMStringList> value) | 149 IDBAny::IDBAny(PassRefPtrWillBeRawPtr<DOMStringList> value) |
150 : m_type(DOMStringListType) | 150 : m_type(DOMStringListType) |
151 , m_domStringList(value) | 151 , m_domStringList(value) |
152 , m_integer(0) | 152 , m_integer(0) |
153 { | 153 { |
154 } | 154 } |
155 | 155 |
156 IDBAny::IDBAny(PassRefPtrWillBeRawPtr<IDBCursor> value) | 156 IDBAny::IDBAny(PassRefPtrWillBeRawPtr<IDBCursor> value) |
157 : m_type(value->isCursorWithValue() ? IDBCursorWithValueType : IDBCursorType
) | 157 : m_type(value->isCursorWithValue() ? IDBCursorWithValueType : IDBCursorType
) |
158 , m_idbCursor(value) | 158 , m_idbCursor(value) |
159 , m_integer(0) | 159 , m_integer(0) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 228 } |
229 | 229 |
230 IDBAny::IDBAny(int64_t value) | 230 IDBAny::IDBAny(int64_t value) |
231 : m_type(IntegerType) | 231 : m_type(IntegerType) |
232 , m_integer(value) | 232 , m_integer(value) |
233 { | 233 { |
234 } | 234 } |
235 | 235 |
236 void IDBAny::trace(Visitor* visitor) | 236 void IDBAny::trace(Visitor* visitor) |
237 { | 237 { |
| 238 visitor->trace(m_domStringList); |
238 visitor->trace(m_idbCursor); | 239 visitor->trace(m_idbCursor); |
239 visitor->trace(m_idbDatabase); | 240 visitor->trace(m_idbDatabase); |
240 visitor->trace(m_idbIndex); | 241 visitor->trace(m_idbIndex); |
241 visitor->trace(m_idbObjectStore); | 242 visitor->trace(m_idbObjectStore); |
242 visitor->trace(m_idbTransaction); | 243 visitor->trace(m_idbTransaction); |
243 visitor->trace(m_idbKey); | 244 visitor->trace(m_idbKey); |
244 } | 245 } |
245 | 246 |
246 } // namespace WebCore | 247 } // namespace WebCore |
OLD | NEW |