Changeset 106773 in webkit
- Timestamp:
- Feb 5, 2012 8:47:11 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106772 r106773 1 2012-02-05 Kentaro Hara <haraken@chromium.org> 2 3 Rename [JSCCustom*] IDL to [JSCustom*] IDL 4 https://bugs.webkit.org/show_bug.cgi?id=77844 5 6 Reviewed by Adam Barth. 7 8 Most existing JSC-specific IDLs have "JS" prefix. We can rename [JSCCustom] to 9 [JSCustom], [JSCCustomGetter] to [JSCustomGetter], and [JSCCustomSetter] to 10 [JSCustomSetter]. 11 12 No tests. No change in behavior. 13 14 * bindings/scripts/CodeGeneratorJS.pm: 15 (GenerateHeader): 16 (GenerateImplementation): 17 * css/CSSStyleDeclaration.idl: 18 * html/HTMLDocument.idl: 19 * html/canvas/DataView.idl: 20 * page/DOMWindow.idl: 21 * page/MemoryInfo.idl: 22 * webaudio/ConvolverNode.idl: 23 * webaudio/DOMWindowWebAudio.idl: 24 * webaudio/WaveShaperNode.idl: 25 * websockets/DOMWindowWebSocket.idl: 26 * workers/WorkerContext.idl: 27 1 28 2012-02-05 ChangSeok Oh <shivamidow@gmail.com> 2 29 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r106737 r106773 858 858 foreach (@{$dataNode->attributes}) { 859 859 my $attribute = $_; 860 $numCustomAttributes++ if $attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSC Custom"};861 $numCustomAttributes++ if ($attribute->signature->extendedAttributes->{"CustomGetter"} || $attribute->signature->extendedAttributes->{"JSC CustomGetter"});862 $numCustomAttributes++ if ($attribute->signature->extendedAttributes->{"CustomSetter"} || $attribute->signature->extendedAttributes->{"JSC CustomSetter"});860 $numCustomAttributes++ if $attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSCustom"}; 861 $numCustomAttributes++ if ($attribute->signature->extendedAttributes->{"CustomGetter"} || $attribute->signature->extendedAttributes->{"JSCustomGetter"}); 862 $numCustomAttributes++ if ($attribute->signature->extendedAttributes->{"CustomSetter"} || $attribute->signature->extendedAttributes->{"JSCustomSetter"}); 863 863 if ($attribute->signature->extendedAttributes->{"CachedAttribute"}) { 864 864 push(@headerContent, " JSC::WriteBarrier<JSC::Unknown> m_" . $attribute->signature->name . ";\n"); … … 879 879 880 880 foreach my $attribute (@{$dataNode->attributes}) { 881 if ($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSC Custom"} || $attribute->signature->extendedAttributes->{"CustomGetter"} || $attribute->signature->extendedAttributes->{"JSCCustomGetter"}) {881 if ($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSCustom"} || $attribute->signature->extendedAttributes->{"CustomGetter"} || $attribute->signature->extendedAttributes->{"JSCustomGetter"}) { 882 882 my $methodName = $codeGenerator->WK_lcfirst($attribute->signature->name); 883 883 push(@headerContent, " JSC::JSValue " . $methodName . "(JSC::ExecState*) const;\n"); 884 884 } 885 if (($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSC Custom"} || $attribute->signature->extendedAttributes->{"CustomSetter"} || $attribute->signature->extendedAttributes->{"JSCCustomSetter"}) && $attribute->type !~ /^readonly/) {885 if (($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSCustom"} || $attribute->signature->extendedAttributes->{"CustomSetter"} || $attribute->signature->extendedAttributes->{"JSCustomSetter"}) && $attribute->type !~ /^readonly/) { 886 886 push(@headerContent, " void set" . $codeGenerator->WK_ucfirst($attribute->signature->name) . "(JSC::ExecState*, JSC::JSValue);\n"); 887 887 } … … 890 890 891 891 foreach my $function (@{$dataNode->functions}) { 892 $numCustomFunctions++ if $function->signature->extendedAttributes->{"Custom"} || $function->signature->extendedAttributes->{"JSC Custom"};892 $numCustomFunctions++ if $function->signature->extendedAttributes->{"Custom"} || $function->signature->extendedAttributes->{"JSCustom"}; 893 893 } 894 894 … … 896 896 push(@headerContent, "\n // Custom functions\n"); 897 897 foreach my $function (@{$dataNode->functions}) { 898 next unless $function->signature->extendedAttributes->{"Custom"} or $function->signature->extendedAttributes->{"JSC Custom"};898 next unless $function->signature->extendedAttributes->{"Custom"} or $function->signature->extendedAttributes->{"JSCustom"}; 899 899 next if $function->{overloads} && $function->{overloadIndex} != 1; 900 900 my $functionImplementationName = $function->signature->extendedAttributes->{"ImplementationFunction"} || $codeGenerator->WK_lcfirst($function->signature->name); … … 1696 1696 } 1697 1697 1698 if ($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSC Custom"} || $attribute->signature->extendedAttributes->{"CustomGetter"} || $attribute->signature->extendedAttributes->{"JSCCustomGetter"}) {1698 if ($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSCustom"} || $attribute->signature->extendedAttributes->{"CustomGetter"} || $attribute->signature->extendedAttributes->{"JSCustomGetter"}) { 1699 1699 push(@implContent, " return castedThis->$implGetterFunctionName(exec);\n"); 1700 1700 } elsif ($attribute->signature->extendedAttributes->{"CheckAccessToNode"}) { … … 1895 1895 } 1896 1896 1897 if ($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSC Custom"} || $attribute->signature->extendedAttributes->{"CustomSetter"} || $attribute->signature->extendedAttributes->{"JSCCustomSetter"}) {1897 if ($attribute->signature->extendedAttributes->{"Custom"} || $attribute->signature->extendedAttributes->{"JSCustom"} || $attribute->signature->extendedAttributes->{"CustomSetter"} || $attribute->signature->extendedAttributes->{"JSCustomSetter"}) { 1898 1898 push(@implContent, " static_cast<$className*>(thisObject)->set$implSetterFunctionName(exec, value);\n"); 1899 1899 } elsif ($type eq "EventListener") { … … 2059 2059 AddIncludesForTypeInImpl($function->signature->type); 2060 2060 2061 my $isCustom = $function->signature->extendedAttributes->{"Custom"} || $function->signature->extendedAttributes->{"JSC Custom"};2061 my $isCustom = $function->signature->extendedAttributes->{"Custom"} || $function->signature->extendedAttributes->{"JSCustom"}; 2062 2062 my $isOverloaded = $function->{overloads} && @{$function->{overloads}} > 1; 2063 2063 -
trunk/Source/WebCore/css/CSSStyleDeclaration.idl
r106737 r106773 35 35 36 36 [ConvertNullStringTo=Null] DOMString getPropertyValue(in [Optional=CallWithDefaultValue] DOMString propertyName); 37 [JSC Custom] CSSValue getPropertyCSSValue(in [Optional=CallWithDefaultValue] DOMString propertyName);37 [JSCustom] CSSValue getPropertyCSSValue(in [Optional=CallWithDefaultValue] DOMString propertyName); 38 38 [ConvertNullStringTo=Null] DOMString removeProperty(in [Optional=CallWithDefaultValue] DOMString propertyName) 39 39 raises(DOMException); -
trunk/Source/WebCore/html/HTMLDocument.idl
r106640 r106773 24 24 HasOverridingNameGetter 25 25 ] HTMLDocument : Document { 26 [JSC Custom, V8Custom] void open();26 [JSCustom, V8Custom] void open(); 27 27 void close(); 28 28 [Custom] void write(in [Optional=CallWithDefaultValue] DOMString text); -
trunk/Source/WebCore/html/canvas/DataView.idl
r106737 r106773 51 51 52 52 // Use custom code to handle NaN case for JSC. 53 [JSC Custom, StrictTypeChecking] float getFloat32(in unsigned long byteOffset, in [Optional] boolean littleEndian)53 [JSCustom, StrictTypeChecking] float getFloat32(in unsigned long byteOffset, in [Optional] boolean littleEndian) 54 54 raises (DOMException); 55 [JSC Custom, StrictTypeChecking] double getFloat64(in unsigned long byteOffset, in [Optional] boolean littleEndian)55 [JSCustom, StrictTypeChecking] double getFloat64(in unsigned long byteOffset, in [Optional] boolean littleEndian) 56 56 raises (DOMException); 57 57 -
trunk/Source/WebCore/page/DOMWindow.idl
r106737 r106773 45 45 // DOM Level 0 46 46 attribute [Replaceable] Screen screen; 47 attribute [Replaceable, DoNotCheckDomainSecurityOnGet, JSC CustomGetter] History history;47 attribute [Replaceable, DoNotCheckDomainSecurityOnGet, JSCustomGetter] History history; 48 48 attribute [Replaceable] BarInfo locationbar; 49 49 attribute [Replaceable] BarInfo menubar; … … 55 55 attribute [Replaceable] Navigator clientInformation; 56 56 readonly attribute Crypto crypto; 57 attribute [DoNotCheckDomainSecurity, JSC Custom, V8CustomSetter, V8Unforgeable, CPPCustom] Location location;57 attribute [DoNotCheckDomainSecurity, JSCustom, V8CustomSetter, V8Unforgeable, CPPCustom] Location location; 58 58 59 59 attribute [Replaceable, CustomGetter, V8CustomSetter] Event event; … … 473 473 attribute HTMLUnknownElementConstructor HTMLUnknownElement; 474 474 475 attribute [JSC CustomGetter, CustomConstructor] HTMLImageElementConstructorConstructor Image; // Usable with new operator476 attribute [JSC CustomGetter] HTMLOptionElementConstructorConstructor Option; // Usable with new operator475 attribute [JSCustomGetter, CustomConstructor] HTMLImageElementConstructorConstructor Image; // Usable with new operator 476 attribute [JSCustomGetter] HTMLOptionElementConstructorConstructor Option; // Usable with new operator 477 477 478 478 attribute CanvasPatternConstructor CanvasPattern; … … 580 580 581 581 #if defined(ENABLE_SHARED_WORKERS) && ENABLE_SHARED_WORKERS 582 attribute [JSC CustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator582 attribute [JSCustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator 583 583 #endif 584 584 … … 603 603 attribute StorageConstructor Storage; 604 604 605 attribute [JSC CustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructorConstructor Audio; // Usable with the new operator605 attribute [JSCustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructorConstructor Audio; // Usable with the new operator 606 606 attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructor HTMLAudioElement; 607 607 attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLMediaElementConstructor HTMLMediaElement; -
trunk/Source/WebCore/page/MemoryInfo.idl
r89269 r106773 37 37 readonly attribute unsigned long totalJSHeapSize; 38 38 readonly attribute unsigned long usedJSHeapSize; 39 readonly attribute [JSC CustomGetter] unsigned long jsHeapSizeLimit;39 readonly attribute [JSCustomGetter] unsigned long jsHeapSizeLimit; 40 40 41 41 }; -
trunk/Source/WebCore/webaudio/ConvolverNode.idl
r106737 r106773 29 29 JSGenerateToJS 30 30 ] ConvolverNode : AudioNode { 31 attribute [JSC CustomSetter] AudioBuffer buffer;31 attribute [JSCustomSetter] AudioBuffer buffer; 32 32 attribute boolean normalize; 33 33 }; -
trunk/Source/WebCore/webaudio/DOMWindowWebAudio.idl
r106666 r106773 25 25 ] DOMWindowWebAudio { 26 26 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP 27 attribute [JSC CustomGetter, V8EnabledAtRuntime] AudioContextConstructor webkitAudioContext;27 attribute [JSCustomGetter, V8EnabledAtRuntime] AudioContextConstructor webkitAudioContext; 28 28 attribute AudioPannerNodeConstructor webkitAudioPannerNode; 29 29 attribute AudioProcessingEventConstructor AudioProcessingEvent; -
trunk/Source/WebCore/webaudio/WaveShaperNode.idl
r106737 r106773 28 28 JSGenerateToJS 29 29 ] WaveShaperNode : AudioNode { 30 attribute [JSC CustomSetter] Float32Array curve;30 attribute [JSCustomSetter] Float32Array curve; 31 31 }; 32 32 } -
trunk/Source/WebCore/websockets/DOMWindowWebSocket.idl
r106666 r106773 37 37 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP 38 38 attribute CloseEventConstructor CloseEvent; 39 attribute [JSC CustomGetter, V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator39 attribute [JSCustomGetter, V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator 40 40 #endif 41 41 }; -
trunk/Source/WebCore/workers/WorkerContext.idl
r106737 r106773 87 87 88 88 #if ENABLE_CHANNEL_MESSAGING 89 attribute [JSC CustomGetter] MessageChannelConstructor MessageChannel;89 attribute [JSCustomGetter] MessageChannelConstructor MessageChannel; 90 90 #endif 91 attribute [JSC CustomGetter] EventSourceConstructor EventSource;92 attribute [JSC CustomGetter] XMLHttpRequestConstructor XMLHttpRequest;91 attribute [JSCustomGetter] EventSourceConstructor EventSource; 92 attribute [JSCustomGetter] XMLHttpRequestConstructor XMLHttpRequest; 93 93 #if defined(ENABLE_WEB_SOCKETS) && ENABLE_WEB_SOCKETS 94 attribute [JSC CustomGetter,V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator94 attribute [JSCustomGetter,V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator 95 95 #endif 96 96 #endif
Note: See TracChangeset
for help on using the changeset viewer.