Changeset 139641 in webkit
- Timestamp:
- Jan 14, 2013 12:25:26 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r139639 r139641 1 2013-01-14 Joshua Bell <jsbell@chromium.org> 2 3 Bindings: Remove special cases for DOMString[] 4 https://bugs.webkit.org/show_bug.cgi?id=106506 5 6 Remove special in binding code generators that map DOMString[] to DOMStringList. 7 Array (T[]) and sequence (sequence<T>) are supported enough now that to be used 8 for Internals, which is the only IDL that needed updating. 9 10 Reviewed by Adam Barth. 11 12 Tests: fast/forms/file/selected-files-from-history-state.html 13 fast/forms/state-restore-broken-state.html 14 fast/forms/state-restore-skip-stateless.html 15 16 Bindings test results updated for JS/V8. 17 18 * bindings/scripts/CodeGenerator.pm: Remove redundant IsArrayType (use GetArrayType instead) 19 (IsRefPtrType): Array and Sequence types are not RefPtr types. 20 * bindings/scripts/CodeGeneratorJS.pm: 21 (IndexGetterReturnsStrings): Remove special case for DOMString[]. 22 (AddIncludesForType): Skip Array types, just like Sequence types. (Should probably recurse 23 for the base type, but not needed for now.) 24 (GenerateParametersCheckExpression): s/IsArrayType/GetArrayType/ 25 (GetNativeType): Remove special case for DOMString[]. 26 (GetNativeTypeForCallbacks): Ditto. 27 (JSValueToNative): Ditto. 28 * bindings/scripts/CodeGeneratorV8.pm: 29 (GenerateParametersCheckExpression): s/IsArrayType/GetArrayType/ 30 (GetNativeType): Remove special case for DOMString[]. 31 (JSValueToNative): Ditto. 32 (GetV8HeaderName): Ditto. 33 (IsWrapperType): 34 * bindings/scripts/test/JS/JSTestObj.cpp: 35 (WebCore): 36 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7): 37 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod9): 38 (WebCore::jsTestObjPrototypeFunctionStringArrayFunction): 39 (WebCore::jsTestObjPrototypeFunctionDomStringListFunction): 40 * bindings/scripts/test/JS/JSTestObj.h: 41 (WebCore): 42 * bindings/scripts/test/TestObj.idl: Added explicit new cases for DOMStringList 43 * bindings/scripts/test/V8/V8TestObj.cpp: 44 (WebCore::TestObjV8Internal::overloadedMethod7Callback): 45 (WebCore::TestObjV8Internal::overloadedMethod9Callback): 46 (WebCore::TestObjV8Internal::stringArrayFunctionCallback): 47 (TestObjV8Internal): 48 (WebCore::TestObjV8Internal::domStringListFunctionCallback): 49 (WebCore): 50 (WebCore::ConfigureV8TestObjTemplate): 51 * testing/Internals.cpp: 52 (WebCore::Internals::formControlStateOfPreviousHistoryItem): 53 (WebCore::Internals::setFormControlStateOfPreviousHistoryItem): 54 (WebCore::Internals::iconURLs): 55 (WebCore::Internals::getReferencedFilePaths): 56 * testing/Internals.h: 57 (Internals): 58 * testing/Internals.idl: Produce DOMString[], consume sequence<DOMString> to match tests. 59 1 60 2013-01-14 Elliott Sprehn <esprehn@chromium.org> 2 61 -
trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm
r138727 r139641 323 323 } 324 324 325 sub IsArrayType326 {327 my $object = shift;328 my $type = shift;329 # FIXME: Add proper support for T[], T[]?, sequence<T>.330 return $type =~ m/\[\]$/;331 }332 333 325 sub IsConstructorTemplate 334 326 { … … 403 395 404 396 return 0 if $object->IsPrimitiveType($type); 397 return 0 if $object->GetArrayType($type); 398 return 0 if $object->GetSequenceType($type); 405 399 return 0 if $type eq "DOMString"; 406 400 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r139278 r139641 186 186 my $type = shift; 187 187 188 return 1 if $type eq "CSSStyleDeclaration" or $type eq "MediaList" or $type eq "DOMStringList" or $type eq "DOM String[]" or $type eq "DOMTokenList" or $type eq "DOMSettableTokenList";188 return 1 if $type eq "CSSStyleDeclaration" or $type eq "MediaList" or $type eq "DOMStringList" or $type eq "DOMTokenList" or $type eq "DOMSettableTokenList"; 189 189 return 0; 190 190 } … … 242 242 $includesRef->{"JSXPathNSResolver.h"} = 1; 243 243 $includesRef->{"JSCustomXPathNSResolver.h"} = 1; 244 } elsif ($type eq "DOMString[]") {245 # FIXME: Consider replacing DOMStringList with DOMString[] or sequence<DOMString>.246 $includesRef->{"JSDOMStringList.h"} = 1;247 244 } elsif ($type eq "SerializedScriptValue") { 248 245 $includesRef->{"SerializedScriptValue.h"} = 1; … … 252 249 $includesRef->{"<wtf/${type}.h>"} = 1; 253 250 } elsif ($codeGenerator->GetSequenceType($type)) { 251 } elsif ($codeGenerator->GetArrayType($type)) { 254 252 } else { 255 253 # default, include the same named file … … 1302 1300 push(@andExpression, "(${value}.isNull() || ${value}.isFunction())"); 1303 1301 $usedArguments{$parameterIndex} = 1; 1304 } elsif ($codeGenerator-> IsArrayType($type) || $codeGenerator->GetSequenceType($type)) {1302 } elsif ($codeGenerator->GetArrayType($type) || $codeGenerator->GetSequenceType($type)) { 1305 1303 # FIXME: Add proper support for T[], T[]?, sequence<T> 1306 1304 if ($parameter->isNullable) { … … 3046 3044 "CompareHow" => "Range::CompareHow", 3047 3045 "DOMString" => "const String&", 3048 # FIXME: Consider replacing DOMStringList with DOMString[] or sequence<DOMString>.3049 "DOMString[]" => "RefPtr<DOMStringList>",3050 3046 "DOMObject" => "ScriptValue", 3051 3047 "NodeFilter" => "RefPtr<NodeFilter>", … … 3073 3069 my $svgNativeType = $codeGenerator->GetSVGTypeNeedingTearOff($type); 3074 3070 return "${svgNativeType}*" if $svgNativeType; 3075 return "RefPtr<DOMStringList>" if $type eq "DOMStringList" or $type eq "DOMString[]";3071 return "RefPtr<DOMStringList>" if $type eq "DOMStringList"; 3076 3072 return $nativeType{$type} if exists $nativeType{$type}; 3077 3073 … … 3099 3095 my $type = shift; 3100 3096 return "SerializedScriptValue*" if $type eq "SerializedScriptValue"; 3101 return "PassRefPtr<DOMStringList>" if $type eq "DOMStringList" or $type eq "DOMString[]";3097 return "PassRefPtr<DOMStringList>" if $type eq "DOMStringList"; 3102 3098 3103 3099 return GetNativeType($type); … … 3211 3207 } 3212 3208 3213 if ($type eq "DOMString []" or $type eq "DOMStringList" ) {3209 if ($type eq "DOMStringList" ) { 3214 3210 AddToImplIncludes("JSDOMStringList.h", $conditional); 3215 3211 return "toDOMStringList(exec, $value)"; -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r139619 r139641 1402 1402 # For Callbacks only checks if the value is null or object. 1403 1403 push(@andExpression, "(${value}->IsNull() || ${value}->IsFunction())"); 1404 } elsif ($codeGenerator-> IsArrayType($type) || $codeGenerator->GetSequenceType($type)) {1404 } elsif ($codeGenerator->GetArrayType($type) || $codeGenerator->GetSequenceType($type)) { 1405 1405 if ($parameter->isNullable) { 1406 1406 push(@andExpression, "(${value}->IsNull() || ${value}->IsArray())"); … … 3695 3695 return "Dictionary" if $type eq "Dictionary"; 3696 3696 3697 # FIXME: Consider replacing DOMStringList with DOMString[] or sequence<DOMString>. 3698 return "RefPtr<DOMStringList>" if $type eq "DOMString[]" or $type eq "DOMStringList"; 3699 3697 return "RefPtr<DOMStringList>" if $type eq "DOMStringList"; 3700 3698 return "RefPtr<IDBKey>" if $type eq "IDBKey"; 3701 3699 return "RefPtr<MediaQueryListListener>" if $type eq "MediaQueryListListener"; … … 3767 3765 return "toWebCoreDate($value)" if $type eq "Date"; 3768 3766 return "toDOMStringList($value, $getIsolate)" if $type eq "DOMStringList"; 3769 # FIXME: Consider replacing DOMStringList with DOMString[] or sequence<DOMString>.3770 return "toDOMStringList($value, $getIsolate)" if $type eq "DOMString[]";3771 3767 3772 3768 if ($type eq "DOMString") { … … 3843 3839 return "SerializedScriptValue.h" if $type eq "SerializedScriptValue"; 3844 3840 return "ScriptValue.h" if $type eq "DOMObject" or $type eq "any"; 3845 return "V8DOMStringList.h" if $type eq "DOMString[]";3846 3841 return "V8${type}.h"; 3847 3842 } … … 3936 3931 'DOMObject' => 1, 3937 3932 'DOMString' => 1, 3938 'DOMString[]' => 1,3939 3933 'DOMTimeStamp' => 1, 3940 3934 'Date' => 1, … … 3967 3961 { 3968 3962 my $type = shift; 3963 # FIXME: Should this return false for Sequence and Array types? 3969 3964 return !($non_wrapper_types{$type}); 3970 3965 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r138263 r139641 310 310 { "methodWithUnsignedLongSequence", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence), (intptr_t)1, NoIntrinsic }, 311 311 { "stringArrayFunction", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionStringArrayFunction), (intptr_t)1, NoIntrinsic }, 312 { "domStringListFunction", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionDomStringListFunction), (intptr_t)1, NoIntrinsic }, 312 313 { "getSVGDocument", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionGetSVGDocument), (intptr_t)0, NoIntrinsic }, 313 314 { "convert1", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionConvert1), (intptr_t)1, NoIntrinsic }, … … 2204 2205 if (exec->argumentCount() < 1) 2205 2206 return throwVMError(exec, createNotEnoughArgumentsError(exec)); 2206 RefPtr<DOMStringList> arrayArg(toDOMStringList(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined)));2207 Vector<String> arrayArg(toNativeArray<String>(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined))); 2207 2208 if (exec->hadException()) 2208 2209 return JSValue::encode(jsUndefined()); … … 2238 2239 if (exec->argumentCount() < 1) 2239 2240 return throwVMError(exec, createNotEnoughArgumentsError(exec)); 2240 RefPtr<DOMStringList> arrayArg(toDOMStringList(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined)));2241 Vector<String> arrayArg(toNativeArray<String>(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined))); 2241 2242 if (exec->hadException()) 2242 2243 return JSValue::encode(jsUndefined()); … … 2441 2442 return throwVMError(exec, createNotEnoughArgumentsError(exec)); 2442 2443 ExceptionCode ec = 0; 2444 Vector<String> values(toNativeArray<String>(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined))); 2445 if (exec->hadException()) 2446 return JSValue::encode(jsUndefined()); 2447 2448 JSC::JSValue result = jsArray(exec, castedThis->globalObject(), impl->stringArrayFunction(values, ec)); 2449 setDOMException(exec, ec); 2450 return JSValue::encode(result); 2451 } 2452 2453 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionDomStringListFunction(ExecState* exec) 2454 { 2455 JSValue thisValue = exec->hostThisValue(); 2456 if (!thisValue.inherits(&JSTestObj::s_info)) 2457 return throwVMTypeError(exec); 2458 JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue)); 2459 ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info); 2460 TestObj* impl = static_cast<TestObj*>(castedThis->impl()); 2461 if (exec->argumentCount() < 1) 2462 return throwVMError(exec, createNotEnoughArgumentsError(exec)); 2463 ExceptionCode ec = 0; 2443 2464 RefPtr<DOMStringList> values(toDOMStringList(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined))); 2444 2465 if (exec->hadException()) 2445 2466 return JSValue::encode(jsUndefined()); 2446 2467 2447 JSC::JSValue result = jsArray(exec, castedThis->globalObject(), impl->stringArrayFunction(values, ec));2468 JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl->domStringListFunction(values, ec))); 2448 2469 setDOMException(exec, ec); 2449 2470 return JSValue::encode(result); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h
r135081 r139641 208 208 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence(JSC::ExecState*); 209 209 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStringArrayFunction(JSC::ExecState*); 210 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionDomStringListFunction(JSC::ExecState*); 210 211 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionGetSVGDocument(JSC::ExecState*); 211 212 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert1(JSC::ExecState*); -
trunk/Source/WebCore/bindings/scripts/test/TestObj.idl
r132667 r139641 220 220 #if defined(TESTING_V8) || defined(TESTING_JS) 221 221 DOMString[] stringArrayFunction(in DOMString[] values) raises(DOMException); 222 DOMStringList domStringListFunction(in DOMStringList values) raises(DOMException); 222 223 #endif 223 224 -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp
r139483 r139641 1472 1472 return throwNotEnoughArgumentsError(args.GetIsolate()); 1473 1473 TestObj* imp = V8TestObj::toNative(args.Holder()); 1474 V8TRYCATCH( RefPtr<DOMStringList>, arrayArg, toDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined), args.GetIsolate()));1474 V8TRYCATCH(Vector<String>, arrayArg, toNativeArray<String>(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))); 1475 1475 imp->overloadedMethod(arrayArg); 1476 1476 return v8Undefined(); … … 1492 1492 return throwNotEnoughArgumentsError(args.GetIsolate()); 1493 1493 TestObj* imp = V8TestObj::toNative(args.Holder()); 1494 V8TRYCATCH( RefPtr<DOMStringList>, arrayArg, toDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined), args.GetIsolate()));1494 V8TRYCATCH(Vector<String>, arrayArg, toNativeArray<String>(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))); 1495 1495 imp->overloadedMethod(arrayArg); 1496 1496 return v8Undefined(); … … 1666 1666 ExceptionCode ec = 0; 1667 1667 { 1668 V8TRYCATCH( RefPtr<DOMStringList>, values, toDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined), args.GetIsolate()));1669 RefPtr<DOMStringList> result = imp->stringArrayFunction(values, ec);1668 V8TRYCATCH(Vector<String>, values, toNativeArray<String>(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))); 1669 Vector<String> result = imp->stringArrayFunction(values, ec); 1670 1670 if (UNLIKELY(ec)) 1671 1671 goto fail; 1672 return v8Array(result.release(), args.GetIsolate()); 1672 return v8Array(result, args.GetIsolate()); 1673 } 1674 fail: 1675 return setDOMException(ec, args.GetIsolate()); 1676 } 1677 1678 static v8::Handle<v8::Value> domStringListFunctionCallback(const v8::Arguments& args) 1679 { 1680 if (args.Length() < 1) 1681 return throwNotEnoughArgumentsError(args.GetIsolate()); 1682 TestObj* imp = V8TestObj::toNative(args.Holder()); 1683 ExceptionCode ec = 0; 1684 { 1685 V8TRYCATCH(RefPtr<DOMStringList>, values, toDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined), args.GetIsolate())); 1686 RefPtr<DOMStringList> result = imp->domStringListFunction(values, ec); 1687 if (UNLIKELY(ec)) 1688 goto fail; 1689 return toV8(result.release(), args.Holder(), args.GetIsolate()); 1673 1690 } 1674 1691 fail: … … 1983 2000 {"overloadedMethod", TestObjV8Internal::overloadedMethodCallback}, 1984 2001 {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampCallback}, 1985 {"stringArrayFunction", TestObjV8Internal::stringArrayFunctionCallback},1986 2002 {"getSVGDocument", TestObjV8Internal::getSVGDocumentCallback}, 1987 2003 {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionCallback}, … … 2117 2133 proto->Set(v8::String::NewSymbol("enabledAtRuntimeMethod2"), v8::FunctionTemplate::New(TestObjV8Internal::enabledAtRuntimeMethod2Callback, v8Undefined(), defaultSignature)); 2118 2134 2135 // Custom Signature 'stringArrayFunction' 2136 const int stringArrayFunctionArgc = 1; 2137 v8::Handle<v8::FunctionTemplate> stringArrayFunctionArgv[stringArrayFunctionArgc] = { V8DOMString[]::GetRawTemplate() }; 2138 v8::Handle<v8::Signature> stringArrayFunctionSignature = v8::Signature::New(desc, stringArrayFunctionArgc, stringArrayFunctionArgv); 2139 proto->Set(v8::String::NewSymbol("stringArrayFunction"), v8::FunctionTemplate::New(TestObjV8Internal::stringArrayFunctionCallback, v8Undefined(), stringArrayFunctionSignature)); 2140 2141 // Custom Signature 'domStringListFunction' 2142 const int domStringListFunctionArgc = 1; 2143 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunctionArgc] = { V8DOMStringList::GetRawTemplate() }; 2144 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::New(desc, domStringListFunctionArgc, domStringListFunctionArgv); 2145 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTemplate::New(TestObjV8Internal::domStringListFunctionCallback, v8Undefined(), domStringListFunctionSignature)); 2146 2119 2147 // Custom Signature 'convert1' 2120 2148 const int convert1Argc = 1; -
trunk/Source/WebCore/testing/Internals.cpp
r139410 r139641 704 704 #endif 705 705 706 PassRefPtr<DOMStringList> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& ec)706 Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& ec) 707 707 { 708 708 HistoryItem* mainItem = frame()->loader()->history()->previousItem(); 709 709 if (!mainItem) { 710 710 ec = INVALID_ACCESS_ERR; 711 return 0;711 return Vector<String>(); 712 712 } 713 713 String uniqueName = frame()->tree()->uniqueName(); 714 714 if (mainItem->target() != uniqueName && !mainItem->childItemWithTarget(uniqueName)) { 715 715 ec = INVALID_ACCESS_ERR; 716 return 0; 717 } 718 const Vector<String>& state = mainItem->target() == uniqueName ? mainItem->documentState() : mainItem->childItemWithTarget(uniqueName)->documentState(); 719 RefPtr<DOMStringList> stringList = DOMStringList::create(); 720 for (unsigned i = 0; i < state.size(); ++i) 721 stringList->append(state[i]); 722 return stringList.release(); 723 } 724 725 void Internals::setFormControlStateOfPreviousHistoryItem(PassRefPtr<DOMStringList> state, ExceptionCode& ec) 716 return Vector<String>(); 717 } 718 return mainItem->target() == uniqueName ? mainItem->documentState() : mainItem->childItemWithTarget(uniqueName)->documentState(); 719 } 720 721 void Internals::setFormControlStateOfPreviousHistoryItem(const Vector<String>& state, ExceptionCode& ec) 726 722 { 727 723 HistoryItem* mainItem = frame()->loader()->history()->previousItem(); 728 if (! state || !mainItem) {724 if (!mainItem) { 729 725 ec = INVALID_ACCESS_ERR; 730 726 return; … … 732 728 String uniqueName = frame()->tree()->uniqueName(); 733 729 if (mainItem->target() == uniqueName) 734 mainItem->setDocumentState( *state.get());730 mainItem->setDocumentState(state); 735 731 else if (HistoryItem* subItem = mainItem->childItemWithTarget(uniqueName)) 736 subItem->setDocumentState( *state.get());732 subItem->setDocumentState(state); 737 733 else 738 734 ec = INVALID_ACCESS_ERR; … … 1649 1645 } 1650 1646 1651 PassRefPtr<DOMStringList> Internals::iconURLs(Document* document) const1647 Vector<String> Internals::iconURLs(Document* document) const 1652 1648 { 1653 1649 Vector<IconURL> iconURLs = document->iconURLs(); 1654 RefPtr<DOMStringList> stringList = DOMStringList::create();1650 Vector<String> array; 1655 1651 1656 1652 Vector<IconURL>::const_iterator iter(iconURLs.begin()); 1657 1653 for (; iter != iconURLs.end(); ++iter) 1658 stringList->append(iter->m_iconURL.string());1659 1660 return stringList.release();1654 array.append(iter->m_iconURL.string()); 1655 1656 return array; 1661 1657 } 1662 1658 … … 1750 1746 } 1751 1747 1752 PassRefPtr<DOMStringList> Internals::getReferencedFilePaths() const 1753 { 1754 RefPtr<DOMStringList> stringList = DOMStringList::create(); 1748 Vector<String> Internals::getReferencedFilePaths() const 1749 { 1755 1750 frame()->loader()->history()->saveDocumentAndScrollState(); 1756 const Vector<String>& filePaths = FormController::getReferencedFilePaths(frame()->loader()->history()->currentItem()->documentState()); 1757 for (size_t i = 0; i < filePaths.size(); ++i) 1758 stringList->append(filePaths[i]); 1759 return stringList.release(); 1751 return FormController::getReferencedFilePaths(frame()->loader()->history()->currentItem()->documentState()); 1760 1752 } 1761 1753 -
trunk/Source/WebCore/testing/Internals.h
r139050 r139641 121 121 void selectColorInColorChooser(Element*, const String& colorValue); 122 122 #endif 123 PassRefPtr<DOMStringList> formControlStateOfPreviousHistoryItem(ExceptionCode&);124 void setFormControlStateOfPreviousHistoryItem( PassRefPtr<DOMStringList>, ExceptionCode&);123 Vector<String> formControlStateOfPreviousHistoryItem(ExceptionCode&); 124 void setFormControlStateOfPreviousHistoryItem(const Vector<String>&, ExceptionCode&); 125 125 void setEnableMockPagePopup(bool, ExceptionCode&); 126 126 #if ENABLE(PAGE_POPUP) … … 241 241 242 242 int pageNumber(Element*, float pageWidth = 800, float pageHeight = 600); 243 PassRefPtr<DOMStringList> iconURLs(Document*) const;243 Vector<String> iconURLs(Document*) const; 244 244 245 245 int numberOfPages(float pageWidthInPixels = 800, float pageHeightInPixels = 600); … … 262 262 PassRefPtr<TypeConversions> typeConversions() const; 263 263 264 PassRefPtr<DOMStringList> getReferencedFilePaths() const;264 Vector<String> getReferencedFilePaths() const; 265 265 266 266 void startTrackingRepaints(Document*, ExceptionCode&); -
trunk/Source/WebCore/testing/Internals.idl
r139050 r139641 82 82 #endif 83 83 DOMString[] formControlStateOfPreviousHistoryItem() raises(DOMException); 84 void setFormControlStateOfPreviousHistoryItem(in DOMString[]values) raises(DOMException);84 void setFormControlStateOfPreviousHistoryItem(in sequence<DOMString> values) raises(DOMException); 85 85 void setEnableMockPagePopup(in boolean enabled) raises(DOMException); 86 86 #if defined(ENABLE_PAGE_POPUP) && ENABLE_PAGE_POPUP
Note: See TracChangeset
for help on using the changeset viewer.