Changeset 107191 in webkit
- Timestamp:
- Feb 9, 2012 12:55:51 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107189 r107191 1 2012-02-09 Kentaro Hara <haraken@chromium.org> 2 3 Unreviewed. Fixed typo in the following files. [TreatUndefinedAs] => [TreatAsUndefined]. 4 5 * bindings/scripts/CodeGeneratorJS.pm: 6 (GenerateParametersCheck): 7 8 * bindings/scripts/test/TestObj.idl: 9 10 * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results. 11 (WebDOMTestObj::methodWithOptionalIsUndefinedString): 12 * bindings/scripts/test/CPP/WebDOMTestObj.h: 13 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: 14 (webkit_dom_test_obj_method_with_optional_is_undefined_string): 15 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: 16 * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: 17 (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor): 18 * bindings/scripts/test/JS/JSTestObj.cpp: 19 (WebCore): 20 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString): 21 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString): 22 (WebCore::jsTestObjPrototypeFunctionConvert5): 23 * bindings/scripts/test/JS/JSTestObj.h: 24 (WebCore): 25 * bindings/scripts/test/ObjC/DOMTestObj.h: 26 * bindings/scripts/test/ObjC/DOMTestObj.mm: 27 (-[DOMTestObj methodWithOptionalIsUndefinedString:]): 28 * bindings/scripts/test/V8/V8TestObj.cpp: 29 (WebCore::TestObjInternal::methodWithOptionalIsUndefinedStringCallback): 30 (WebCore): 31 1 32 2012-02-09 Kentaro Hara <haraken@chromium.org> 2 33 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r107186 r107191 2497 2497 2498 2498 my $parameterMissingPolicy = "MissingIsUndefinedValue"; 2499 if ($parameter->extendedAttributes->{"Treat AsUndefined"} and $parameter->extendedAttributes->{"TreatAsUndefined"} eq "NullString") {2499 if ($parameter->extendedAttributes->{"TreatUndefinedAs"} and $parameter->extendedAttributes->{"TreatUndefinedAs"} eq "NullString") { 2500 2500 $parameterMissingPolicy = "MissingIsNullValue"; 2501 2501 } -
trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp
r107182 r107191 952 952 } 953 953 954 void WebDOMTestObj::methodWithOptionalIs TreatAsUndefinedString(const WebDOMString& str)955 { 956 if (!impl()) 957 return; 958 959 impl()->methodWithOptionalIs TreatAsUndefinedString(str);954 void WebDOMTestObj::methodWithOptionalIsUndefinedString(const WebDOMString& str) 955 { 956 if (!impl()) 957 return; 958 959 impl()->methodWithOptionalIsUndefinedString(str); 960 960 } 961 961 -
trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h
r107182 r107191 188 188 void methodWithNonOptionalArgAndTwoOptionalArgs(int nonOpt, int opt1, int opt2); 189 189 void methodWithOptionalString(const WebDOMString& str); 190 void methodWithOptionalIs TreatAsUndefinedString(const WebDOMString& str);190 void methodWithOptionalIsUndefinedString(const WebDOMString& str); 191 191 void methodWithOptionalIsNullStringString(const WebDOMString& str); 192 192 WebDOMString conditionalMethod1(); -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
r107182 r107191 347 347 348 348 void 349 webkit_dom_test_obj_method_with_optional_is_ treat_as_undefined_string(WebKitDOMTestObj* self, const gchar* str)349 webkit_dom_test_obj_method_with_optional_is_undefined_string(WebKitDOMTestObj* self, const gchar* str) 350 350 { 351 351 g_return_if_fail(self); … … 354 354 g_return_if_fail(str); 355 355 WTF::String converted_str = WTF::String::fromUTF8(str); 356 item->methodWithOptionalIs TreatAsUndefinedString(converted_str);356 item->methodWithOptionalIsUndefinedString(converted_str); 357 357 } 358 358 -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
r107182 r107191 274 274 275 275 /** 276 * webkit_dom_test_obj_method_with_optional_is_ treat_as_undefined_string:276 * webkit_dom_test_obj_method_with_optional_is_undefined_string: 277 277 * @self: A #WebKitDOMTestObj 278 278 * @str: A #gchar … … 282 282 **/ 283 283 WEBKIT_API void 284 webkit_dom_test_obj_method_with_optional_is_ treat_as_undefined_string(WebKitDOMTestObj* self, const gchar* str);284 webkit_dom_test_obj_method_with_optional_is_undefined_string(WebKitDOMTestObj* self, const gchar* str); 285 285 286 286 /** -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp
r107182 r107191 104 104 if (exec->hadException()) 105 105 return JSValue::encode(jsUndefined()); 106 const String& str3(ustringToString(MAYBE_MISSING_PARAMETER(exec, 2, MissingIs UndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue).toString(exec)->value(exec)));106 const String& str3(ustringToString(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsNullValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 2, MissingIsNullValue).toString(exec)->value(exec))); 107 107 if (exec->hadException()) 108 108 return JSValue::encode(jsUndefined()); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r107182 r107191 271 271 { "methodWithNonOptionalArgAndTwoOptionalArgs", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs), (intptr_t)3, NoIntrinsic }, 272 272 { "methodWithOptionalString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalString), (intptr_t)1, NoIntrinsic }, 273 { "methodWithOptionalIs TreatAsUndefinedString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsTreatAsUndefinedString), (intptr_t)1, NoIntrinsic },273 { "methodWithOptionalIsUndefinedString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString), (intptr_t)1, NoIntrinsic }, 274 274 { "methodWithOptionalIsNullStringString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString), (intptr_t)1, NoIntrinsic }, 275 275 { "methodWithCallbackArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithCallbackArg), (intptr_t)1, NoIntrinsic }, … … 299 299 }; 300 300 301 static const HashTable JSTestObjPrototypeTable = { 26 5, 255, JSTestObjPrototypeTableValues, 0 };301 static const HashTable JSTestObjPrototypeTable = { 266, 255, JSTestObjPrototypeTableValues, 0 }; 302 302 const ClassInfo JSTestObjPrototype::s_info = { "TestObjPrototype", &Base::s_info, &JSTestObjPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestObjPrototype) }; 303 303 … … 1630 1630 } 1631 1631 1632 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIs TreatAsUndefinedString(ExecState* exec)1632 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString(ExecState* exec) 1633 1633 { 1634 1634 JSValue thisValue = exec->hostThisValue(); … … 1641 1641 if (exec->hadException()) 1642 1642 return JSValue::encode(jsUndefined()); 1643 impl->methodWithOptionalIs TreatAsUndefinedString(str);1643 impl->methodWithOptionalIsUndefinedString(str); 1644 1644 return JSValue::encode(jsUndefined()); 1645 1645 } … … 1653 1653 ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info); 1654 1654 TestObj* impl = static_cast<TestObj*>(castedThis->impl()); 1655 const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIs UndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));1655 const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue).toString(exec)->value(exec))); 1656 1656 if (exec->hadException()) 1657 1657 return JSValue::encode(jsUndefined()); … … 2081 2081 if (exec->argumentCount() < 1) 2082 2082 return throwVMError(exec, createTypeError(exec, "Not enough arguments")); 2083 e* (toe(MAYBE_MISSING_PARAMETER(exec, 0, MissingIs UndefinedValue)));2083 e* (toe(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue))); 2084 2084 if (exec->hadException()) 2085 2085 return JSValue::encode(jsUndefined()); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h
r107182 r107191 176 176 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(JSC::ExecState*); 177 177 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(JSC::ExecState*); 178 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIs TreatAsUndefinedString(JSC::ExecState*);178 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString(JSC::ExecState*); 179 179 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString(JSC::ExecState*); 180 180 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(JSC::ExecState*); -
trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h
r107182 r107191 185 185 - (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2; 186 186 - (void)methodWithOptionalString:(NSString *)str; 187 - (void)methodWithOptionalIs TreatAsUndefinedString:(NSString *)str;187 - (void)methodWithOptionalIsUndefinedString:(NSString *)str; 188 188 - (void)methodWithOptionalIsNullStringString:(NSString *)str; 189 189 - (NSString *)conditionalMethod1; -
trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm
r107182 r107191 807 807 } 808 808 809 - (void)methodWithOptionalIs TreatAsUndefinedString:(NSString *)str810 { 811 WebCore::JSMainThreadNullState state; 812 IMPL->methodWithOptionalIs TreatAsUndefinedString(str);809 - (void)methodWithOptionalIsUndefinedString:(NSString *)str 810 { 811 WebCore::JSMainThreadNullState state; 812 IMPL->methodWithOptionalIsUndefinedString(str); 813 813 } 814 814 -
trunk/Source/WebCore/bindings/scripts/test/TestObj.idl
r107189 r107191 120 120 void methodWithNonOptionalArgAndTwoOptionalArgs(in long nonOpt, in [Optional] long opt1, in [Optional] long opt2); 121 121 void methodWithOptionalString(in [Optional] DOMString str); 122 void methodWithOptionalIs TreatAsUndefinedString(in [Optional=TreatAsUndefined] DOMString str);122 void methodWithOptionalIsUndefinedString(in [Optional=TreatAsUndefined] DOMString str); 123 123 void methodWithOptionalIsNullStringString(in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString str); 124 124 -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp
r107182 r107191 1187 1187 } 1188 1188 1189 static v8::Handle<v8::Value> methodWithOptionalIs TreatAsUndefinedStringCallback(const v8::Arguments& args)1190 { 1191 INC_STATS("DOM.TestObj.methodWithOptionalIs TreatAsUndefinedString");1189 static v8::Handle<v8::Value> methodWithOptionalIsUndefinedStringCallback(const v8::Arguments& args) 1190 { 1191 INC_STATS("DOM.TestObj.methodWithOptionalIsUndefinedString"); 1192 1192 TestObj* imp = V8TestObj::toNative(args.Holder()); 1193 1193 STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)); 1194 imp->methodWithOptionalIs TreatAsUndefinedString(str);1194 imp->methodWithOptionalIsUndefinedString(str); 1195 1195 return v8::Handle<v8::Value>(); 1196 1196 } … … 1719 1719 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback}, 1720 1720 {"methodWithOptionalString", TestObjInternal::methodWithOptionalStringCallback}, 1721 {"methodWithOptionalIs TreatAsUndefinedString", TestObjInternal::methodWithOptionalIsTreatAsUndefinedStringCallback},1721 {"methodWithOptionalIsUndefinedString", TestObjInternal::methodWithOptionalIsUndefinedStringCallback}, 1722 1722 {"methodWithOptionalIsNullStringString", TestObjInternal::methodWithOptionalIsNullStringStringCallback}, 1723 1723 {"methodWithCallbackArg", TestObjInternal::methodWithCallbackArgCallback},
Note: See TracChangeset
for help on using the changeset viewer.