Index: Source/bindings/tests/results/V8TestSpecialOperations.cpp |
diff --git a/Source/bindings/tests/results/V8TestSpecialOperations.cpp b/Source/bindings/tests/results/V8TestSpecialOperations.cpp |
index efdd445d7ac2a8e9b06716c2c9131ef0ac867d50..3561fb530b1af9191e006abf6a7cbd6786ba7671 100644 |
--- a/Source/bindings/tests/results/V8TestSpecialOperations.cpp |
+++ b/Source/bindings/tests/results/V8TestSpecialOperations.cpp |
@@ -59,17 +59,15 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TOSTRING_VOID_INTERNAL(name, info[0]); |
} |
- bool result0Enabled = false; |
- RefPtrWillBeRawPtr<Node> result0; |
- bool result1Enabled = false; |
- RefPtrWillBeRawPtr<NodeList> result1; |
- impl->getItem(name, result0Enabled, result0, result1Enabled, result1); |
- if (result0Enabled) { |
- v8SetReturnValue(info, result0.release()); |
+ Nullable<RefPtrWillBeRawPtr<Node> > result0; |
+ Nullable<RefPtrWillBeRawPtr<NodeList> > result1; |
+ impl->getItem(name, result0, result1); |
+ if (!result0.isNull()) { |
+ v8SetReturnValue(info, result0.get().release()); |
return; |
} |
- if (result1Enabled) { |
- v8SetReturnValue(info, result1.release()); |
+ if (!result1.isNull()) { |
+ v8SetReturnValue(info, result1.get().release()); |
return; |
} |
v8SetReturnValueNull(info); |
@@ -86,19 +84,17 @@ static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa |
{ |
TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(name); |
- bool result0Enabled = false; |
- RefPtrWillBeRawPtr<Node> result0; |
- bool result1Enabled = false; |
- RefPtrWillBeRawPtr<NodeList> result1; |
- impl->getItem(propertyName, result0Enabled, result0, result1Enabled, result1); |
- if (!result0Enabled && !result1Enabled) |
+ Nullable<RefPtrWillBeRawPtr<Node> > result0; |
+ Nullable<RefPtrWillBeRawPtr<NodeList> > result1; |
+ impl->getItem(propertyName, result0, result1); |
+ if (result0.isNull() && result1.isNull()) |
return; |
- if (result0Enabled) { |
- v8SetReturnValueFast(info, WTF::getPtr(result0.release()), impl); |
+ if (!result0.isNull()) { |
+ v8SetReturnValueFast(info, WTF::getPtr(result0.get().release()), impl); |
return; |
} |
- if (result1Enabled) { |
- v8SetReturnValueFast(info, WTF::getPtr(result1.release()), impl); |
+ if (!result1.isNull()) { |
+ v8SetReturnValueFast(info, WTF::getPtr(result1.get().release()), impl); |
return; |
} |
v8SetReturnValueNull(info); |