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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 v8::Local<v8::Value> v8Value; | 323 v8::Local<v8::Value> v8Value; |
324 if (!getKey(key, v8Value)) | 324 if (!getKey(key, v8Value)) |
325 return false; | 325 return false; |
326 | 326 |
327 // We need to handle a DOMWindow specially, because a DOMWindow wrapper | 327 // We need to handle a DOMWindow specially, because a DOMWindow wrapper |
328 // exists on a prototype chain of v8Value. | 328 // exists on a prototype chain of v8Value. |
329 value = toDOMWindow(v8Value, m_isolate); | 329 value = toDOMWindow(v8Value, m_isolate); |
330 return true; | 330 return true; |
331 } | 331 } |
332 | 332 |
333 bool Dictionary::get(const String& key, RefPtrWillBeRawPtr<Storage>& value) cons
t | 333 bool Dictionary::get(const String& key, RefPtrWillBeMember<Storage>& value) cons
t |
334 { | 334 { |
335 v8::Local<v8::Value> v8Value; | 335 v8::Local<v8::Value> v8Value; |
336 if (!getKey(key, v8Value)) | 336 if (!getKey(key, v8Value)) |
337 return false; | 337 return false; |
338 | 338 |
339 value = V8Storage::toNativeWithTypeCheck(m_isolate, v8Value); | 339 value = V8Storage::toNativeWithTypeCheck(m_isolate, v8Value); |
340 return true; | 340 return true; |
341 } | 341 } |
342 | 342 |
343 bool Dictionary::get(const String& key, MessagePortArray& value) const | 343 bool Dictionary::get(const String& key, MessagePortArray& value) const |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 739 |
740 return *this; | 740 return *this; |
741 } | 741 } |
742 | 742 |
743 void Dictionary::ConversionContext::throwTypeError(const String& detail) | 743 void Dictionary::ConversionContext::throwTypeError(const String& detail) |
744 { | 744 { |
745 exceptionState().throwTypeError(detail); | 745 exceptionState().throwTypeError(detail); |
746 } | 746 } |
747 | 747 |
748 } // namespace WebCore | 748 } // namespace WebCore |
OLD | NEW |