Title: [107191] trunk/Source/WebCore
Revision
107191
Author
[email protected]
Date
2012-02-09 00:55:51 -0800 (Thu, 09 Feb 2012)

Log Message

Unreviewed. Fixed typo in the following files. [TreatUndefinedAs] => [TreatAsUndefined].

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateParametersCheck):

* bindings/scripts/test/TestObj.idl:

* bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results.
(WebDOMTestObj::methodWithOptionalIsUndefinedString):
* bindings/scripts/test/CPP/WebDOMTestObj.h:
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
(webkit_dom_test_obj_method_with_optional_is_undefined_string):
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
(WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString):
(WebCore::jsTestObjPrototypeFunctionConvert5):
* bindings/scripts/test/JS/JSTestObj.h:
(WebCore):
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
(-[DOMTestObj methodWithOptionalIsUndefinedString:]):
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::TestObjInternal::methodWithOptionalIsUndefinedStringCallback):
(WebCore):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (107190 => 107191)


--- trunk/Source/WebCore/ChangeLog	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/ChangeLog	2012-02-09 08:55:51 UTC (rev 107191)
@@ -1,5 +1,36 @@
 2012-02-09  Kentaro Hara  <[email protected]>
 
+        Unreviewed. Fixed typo in the following files. [TreatUndefinedAs] => [TreatAsUndefined].
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GenerateParametersCheck):
+
+        * bindings/scripts/test/TestObj.idl:
+
+        * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results.
+        (WebDOMTestObj::methodWithOptionalIsUndefinedString):
+        * bindings/scripts/test/CPP/WebDOMTestObj.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
+        (webkit_dom_test_obj_method_with_optional_is_undefined_string):
+        * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
+        * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+        (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        (WebCore):
+        (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString):
+        (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString):
+        (WebCore::jsTestObjPrototypeFunctionConvert5):
+        * bindings/scripts/test/JS/JSTestObj.h:
+        (WebCore):
+        * bindings/scripts/test/ObjC/DOMTestObj.h:
+        * bindings/scripts/test/ObjC/DOMTestObj.mm:
+        (-[DOMTestObj methodWithOptionalIsUndefinedString:]):
+        * bindings/scripts/test/V8/V8TestObj.cpp:
+        (WebCore::TestObjInternal::methodWithOptionalIsUndefinedStringCallback):
+        (WebCore):
+
+2012-02-09  Kentaro Hara  <[email protected]>
+
         Unreviewed. Fixed typo in the following files. [TreatReturnedNullStringTo=] => [TreatReturnedNullStringAs=].
 
         * bindings/scripts/test/TestObj.idl:

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2012-02-09 08:55:51 UTC (rev 107191)
@@ -2496,7 +2496,7 @@
             }
 
             my $parameterMissingPolicy = "MissingIsUndefinedValue";
-            if ($parameter->extendedAttributes->{"TreatAsUndefined"} and $parameter->extendedAttributes->{"TreatAsUndefined"} eq "NullString") {
+            if ($parameter->extendedAttributes->{"TreatUndefinedAs"} and $parameter->extendedAttributes->{"TreatUndefinedAs"} eq "NullString") {
                 $parameterMissingPolicy = "MissingIsNullValue";
             }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp	2012-02-09 08:55:51 UTC (rev 107191)
@@ -951,12 +951,12 @@
     impl()->methodWithOptionalString(str);
 }
 
-void WebDOMTestObj::methodWithOptionalIsTreatAsUndefinedString(const WebDOMString& str)
+void WebDOMTestObj::methodWithOptionalIsUndefinedString(const WebDOMString& str)
 {
     if (!impl())
         return;
 
-    impl()->methodWithOptionalIsTreatAsUndefinedString(str);
+    impl()->methodWithOptionalIsUndefinedString(str);
 }
 
 void WebDOMTestObj::methodWithOptionalIsNullStringString(const WebDOMString& str)

Modified: trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h	2012-02-09 08:55:51 UTC (rev 107191)
@@ -187,7 +187,7 @@
     void methodWithNonOptionalArgAndOptionalArg(int nonOpt, int opt);
     void methodWithNonOptionalArgAndTwoOptionalArgs(int nonOpt, int opt1, int opt2);
     void methodWithOptionalString(const WebDOMString& str);
-    void methodWithOptionalIsTreatAsUndefinedString(const WebDOMString& str);
+    void methodWithOptionalIsUndefinedString(const WebDOMString& str);
     void methodWithOptionalIsNullStringString(const WebDOMString& str);
     WebDOMString conditionalMethod1();
     void conditionalMethod2();

Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp	2012-02-09 08:55:51 UTC (rev 107191)
@@ -346,14 +346,14 @@
 }
 
 void
-webkit_dom_test_obj_method_with_optional_is_treat_as_undefined_string(WebKitDOMTestObj* self, const gchar* str)
+webkit_dom_test_obj_method_with_optional_is_undefined_string(WebKitDOMTestObj* self, const gchar* str)
 {
     g_return_if_fail(self);
     WebCore::JSMainThreadNullState state;
     WebCore::TestObj * item = WebKit::core(self);
     g_return_if_fail(str);
     WTF::String converted_str = WTF::String::fromUTF8(str);
-    item->methodWithOptionalIsTreatAsUndefinedString(converted_str);
+    item->methodWithOptionalIsUndefinedString(converted_str);
 }
 
 void

Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h	2012-02-09 08:55:51 UTC (rev 107191)
@@ -273,7 +273,7 @@
 webkit_dom_test_obj_method_with_optional_string(WebKitDOMTestObj* self, const gchar* str);
 
 /**
- * webkit_dom_test_obj_method_with_optional_is_treat_as_undefined_string:
+ * webkit_dom_test_obj_method_with_optional_is_undefined_string:
  * @self: A #WebKitDOMTestObj
  * @str: A #gchar
  *
@@ -281,7 +281,7 @@
  *
 **/
 WEBKIT_API void
-webkit_dom_test_obj_method_with_optional_is_treat_as_undefined_string(WebKitDOMTestObj* self, const gchar* str);
+webkit_dom_test_obj_method_with_optional_is_undefined_string(WebKitDOMTestObj* self, const gchar* str);
 
 /**
  * webkit_dom_test_obj_method_with_optional_is_null_string_string:

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp	2012-02-09 08:55:51 UTC (rev 107191)
@@ -103,7 +103,7 @@
     const String& str2(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
     if (exec->hadException())
         return JSValue::encode(jsUndefined());
-    const String& str3(ustringToString(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue).toString(exec)->value(exec)));
+    const String& str3(ustringToString(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsNullValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 2, MissingIsNullValue).toString(exec)->value(exec)));
     if (exec->hadException())
         return JSValue::encode(jsUndefined());
     RefPtr<TestNamedConstructor> object = TestNamedConstructor::createForJSConstructor(jsConstructor->document(), str1, str2, str3, ec);

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp	2012-02-09 08:55:51 UTC (rev 107191)
@@ -270,7 +270,7 @@
     { "methodWithNonOptionalArgAndOptionalArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg), (intptr_t)2, NoIntrinsic },
     { "methodWithNonOptionalArgAndTwoOptionalArgs", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs), (intptr_t)3, NoIntrinsic },
     { "methodWithOptionalString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalString), (intptr_t)1, NoIntrinsic },
-    { "methodWithOptionalIsTreatAsUndefinedString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsTreatAsUndefinedString), (intptr_t)1, NoIntrinsic },
+    { "methodWithOptionalIsUndefinedString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString), (intptr_t)1, NoIntrinsic },
     { "methodWithOptionalIsNullStringString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString), (intptr_t)1, NoIntrinsic },
     { "methodWithCallbackArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithCallbackArg), (intptr_t)1, NoIntrinsic },
     { "methodWithNonCallbackArgAndCallbackArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg), (intptr_t)2, NoIntrinsic },
@@ -298,7 +298,7 @@
     { 0, 0, 0, 0, NoIntrinsic }
 };
 
-static const HashTable JSTestObjPrototypeTable = { 265, 255, JSTestObjPrototypeTableValues, 0 };
+static const HashTable JSTestObjPrototypeTable = { 266, 255, JSTestObjPrototypeTableValues, 0 };
 const ClassInfo JSTestObjPrototype::s_info = { "TestObjPrototype", &Base::s_info, &JSTestObjPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestObjPrototype) };
 
 JSObject* JSTestObjPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
@@ -1629,7 +1629,7 @@
     return JSValue::encode(jsUndefined());
 }
 
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsTreatAsUndefinedString(ExecState* exec)
+EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString(ExecState* exec)
 {
     JSValue thisValue = exec->hostThisValue();
     if (!thisValue.inherits(&JSTestObj::s_info))
@@ -1640,7 +1640,7 @@
     const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     if (exec->hadException())
         return JSValue::encode(jsUndefined());
-    impl->methodWithOptionalIsTreatAsUndefinedString(str);
+    impl->methodWithOptionalIsUndefinedString(str);
     return JSValue::encode(jsUndefined());
 }
 
@@ -1652,7 +1652,7 @@
     JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
     ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
     TestObj* impl = static_cast<TestObj*>(castedThis->impl());
-    const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
+    const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue).toString(exec)->value(exec)));
     if (exec->hadException())
         return JSValue::encode(jsUndefined());
     impl->methodWithOptionalIsNullStringString(str);
@@ -2080,7 +2080,7 @@
     TestObj* impl = static_cast<TestObj*>(castedThis->impl());
     if (exec->argumentCount() < 1)
         return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
-    e* (toe(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
+    e* (toe(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue)));
     if (exec->hadException())
         return JSValue::encode(jsUndefined());
     impl->convert5();

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h	2012-02-09 08:55:51 UTC (rev 107191)
@@ -175,7 +175,7 @@
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsTreatAsUndefinedString(JSC::ExecState*);
+JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(JSC::ExecState*);

Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h	2012-02-09 08:55:51 UTC (rev 107191)
@@ -184,7 +184,7 @@
 - (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt;
 - (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2;
 - (void)methodWithOptionalString:(NSString *)str;
-- (void)methodWithOptionalIsTreatAsUndefinedString:(NSString *)str;
+- (void)methodWithOptionalIsUndefinedString:(NSString *)str;
 - (void)methodWithOptionalIsNullStringString:(NSString *)str;
 - (NSString *)conditionalMethod1;
 - (void)conditionalMethod2;

Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm	2012-02-09 08:55:51 UTC (rev 107191)
@@ -806,10 +806,10 @@
     IMPL->methodWithOptionalString(str);
 }
 
-- (void)methodWithOptionalIsTreatAsUndefinedString:(NSString *)str
+- (void)methodWithOptionalIsUndefinedString:(NSString *)str
 {
     WebCore::JSMainThreadNullState state;
-    IMPL->methodWithOptionalIsTreatAsUndefinedString(str);
+    IMPL->methodWithOptionalIsUndefinedString(str);
 }
 
 - (void)methodWithOptionalIsNullStringString:(NSString *)str

Modified: trunk/Source/WebCore/bindings/scripts/test/TestObj.idl (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/TestObj.idl	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/TestObj.idl	2012-02-09 08:55:51 UTC (rev 107191)
@@ -119,7 +119,7 @@
         void    methodWithNonOptionalArgAndOptionalArg(in long nonOpt, in [Optional] long opt);
         void    methodWithNonOptionalArgAndTwoOptionalArgs(in long nonOpt, in [Optional] long opt1, in [Optional] long opt2);
         void    methodWithOptionalString(in [Optional] DOMString str);
-        void    methodWithOptionalIsTreatAsUndefinedString(in [Optional=TreatAsUndefined] DOMString str);
+        void    methodWithOptionalIsUndefinedString(in [Optional=TreatAsUndefined] DOMString str);
         void    methodWithOptionalIsNullStringString(in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString str);
 
 #if defined(TESTING_V8) || defined(TESTING_JS)

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp (107190 => 107191)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp	2012-02-09 08:50:46 UTC (rev 107190)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp	2012-02-09 08:55:51 UTC (rev 107191)
@@ -1186,12 +1186,12 @@
     return v8::Handle<v8::Value>();
 }
 
-static v8::Handle<v8::Value> methodWithOptionalIsTreatAsUndefinedStringCallback(const v8::Arguments& args)
+static v8::Handle<v8::Value> methodWithOptionalIsUndefinedStringCallback(const v8::Arguments& args)
 {
-    INC_STATS("DOM.TestObj.methodWithOptionalIsTreatAsUndefinedString");
+    INC_STATS("DOM.TestObj.methodWithOptionalIsUndefinedString");
     TestObj* imp = V8TestObj::toNative(args.Holder());
     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
-    imp->methodWithOptionalIsTreatAsUndefinedString(str);
+    imp->methodWithOptionalIsUndefinedString(str);
     return v8::Handle<v8::Value>();
 }
 
@@ -1718,7 +1718,7 @@
     {"methodWithNonOptionalArgAndOptionalArg", TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback},
     {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback},
     {"methodWithOptionalString", TestObjInternal::methodWithOptionalStringCallback},
-    {"methodWithOptionalIsTreatAsUndefinedString", TestObjInternal::methodWithOptionalIsTreatAsUndefinedStringCallback},
+    {"methodWithOptionalIsUndefinedString", TestObjInternal::methodWithOptionalIsUndefinedStringCallback},
     {"methodWithOptionalIsNullStringString", TestObjInternal::methodWithOptionalIsNullStringStringCallback},
     {"methodWithCallbackArg", TestObjInternal::methodWithCallbackArgCallback},
     {"methodWithNonCallbackArgAndCallbackArg", TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback},
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to