Index: webkit/port/bindings/v8/v8_custom.cpp |
=================================================================== |
--- webkit/port/bindings/v8/v8_custom.cpp (revision 4425) |
+++ webkit/port/bindings/v8/v8_custom.cpp (working copy) |
@@ -3012,10 +3012,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->parentNode(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->parentNode(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3027,10 +3027,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->firstChild(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->firstChild(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3042,10 +3042,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->lastChild(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->lastChild(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3057,10 +3057,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->nextNode(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->nextNode(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3072,10 +3072,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->previousNode(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->previousNode(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3087,10 +3087,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->nextSibling(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->nextSibling(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3102,10 +3102,10 @@ |
TreeWalker* treeWalker = V8Proxy::ToNativeObject<TreeWalker>( |
V8ClassIndex::TREEWALKER, args.Holder()); |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = treeWalker->previousSibling(context.get()); |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = treeWalker->previousSibling(&context); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3118,14 +3118,14 @@ |
V8ClassIndex::NODEITERATOR, args.Holder()); |
ExceptionCode ec = 0; |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = nodeIterator->nextNode(context.get(), ec); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = nodeIterator->nextNode(&context, ec); |
if (ec != 0) { |
V8Proxy::SetDOMException(ec); |
return v8::Null(); |
} |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |
@@ -3138,14 +3138,14 @@ |
V8ClassIndex::NODEITERATOR, args.Holder()); |
ExceptionCode ec = 0; |
- OwnPtr<ExceptionContext> context(new ExceptionContext()); |
- RefPtr<Node> result = nodeIterator->previousNode(context.get(), ec); |
+ ExceptionContext context(NULL); |
+ RefPtr<Node> result = nodeIterator->previousNode(&context, ec); |
if (ec != 0) { |
V8Proxy::SetDOMException(ec); |
return v8::Null(); |
} |
- if (context->hadException()) { |
- v8::ThrowException(context->exception()); |
+ if (context.hadException()) { |
+ v8::ThrowException(context.data()); |
return v8::Undefined(); |
} |
if (!result) return v8::Null(); |