| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 NonThrowableExceptionState exceptionState; | 462 NonThrowableExceptionState exceptionState; |
| 463 return toUInt64(value, NormalConversion, exceptionState); | 463 return toUInt64(value, NormalConversion, exceptionState); |
| 464 } | 464 } |
| 465 | 465 |
| 466 float toFloat(v8::Handle<v8::Value> value, ExceptionState& exceptionState) | 466 float toFloat(v8::Handle<v8::Value> value, ExceptionState& exceptionState) |
| 467 { | 467 { |
| 468 V8TRYCATCH_EXCEPTION_RETURN(v8::Local<v8::Number>, numberObject, value->ToNu
mber(), exceptionState, 0); | 468 V8TRYCATCH_EXCEPTION_RETURN(v8::Local<v8::Number>, numberObject, value->ToNu
mber(), exceptionState, 0); |
| 469 return numberObject->NumberValue(); | 469 return numberObject->NumberValue(); |
| 470 } | 470 } |
| 471 | 471 |
| 472 PassRefPtr<XPathNSResolver> toXPathNSResolver(v8::Handle<v8::Value> value, v8::I
solate* isolate) | 472 PassRefPtrWillBeRawPtr<XPathNSResolver> toXPathNSResolver(v8::Handle<v8::Value>
value, v8::Isolate* isolate) |
| 473 { | 473 { |
| 474 RefPtr<XPathNSResolver> resolver; | 474 RefPtrWillBeRawPtr<XPathNSResolver> resolver; |
| 475 if (V8XPathNSResolver::hasInstance(value, isolate)) | 475 if (V8XPathNSResolver::hasInstance(value, isolate)) |
| 476 resolver = V8XPathNSResolver::toNative(v8::Handle<v8::Object>::Cast(valu
e)); | 476 resolver = V8XPathNSResolver::toNative(v8::Handle<v8::Object>::Cast(valu
e)); |
| 477 else if (value->IsObject()) | 477 else if (value->IsObject()) |
| 478 resolver = V8CustomXPathNSResolver::create(value->ToObject(), isolate); | 478 resolver = V8CustomXPathNSResolver::create(value->ToObject(), isolate); |
| 479 return resolver; | 479 return resolver; |
| 480 } | 480 } |
| 481 | 481 |
| 482 DOMWindow* toDOMWindow(v8::Handle<v8::Value> value, v8::Isolate* isolate) | 482 DOMWindow* toDOMWindow(v8::Handle<v8::Value> value, v8::Isolate* isolate) |
| 483 { | 483 { |
| 484 if (value.IsEmpty() || !value->IsObject()) | 484 if (value.IsEmpty() || !value->IsObject()) |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 return v8::Isolate::GetCurrent(); | 744 return v8::Isolate::GetCurrent(); |
| 745 } | 745 } |
| 746 | 746 |
| 747 v8::Isolate* toIsolate(Frame* frame) | 747 v8::Isolate* toIsolate(Frame* frame) |
| 748 { | 748 { |
| 749 ASSERT(frame); | 749 ASSERT(frame); |
| 750 return frame->script().isolate(); | 750 return frame->script().isolate(); |
| 751 } | 751 } |
| 752 | 752 |
| 753 } // namespace WebCore | 753 } // namespace WebCore |
| OLD | NEW |