Diff
Modified: trunk/Source/WebCore/ChangeLog (107180 => 107181)
--- trunk/Source/WebCore/ChangeLog 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/ChangeLog 2012-02-09 06:43:18 UTC (rev 107181)
@@ -1,3 +1,37 @@
+2012-02-08 Kentaro Hara <[email protected]>
+
+ Rename [HasNumericIndexGetter] to [NumericIndexedGetter]
+ https://bugs.webkit.org/show_bug.cgi?id=78096
+
+ Reviewed by Adam Barth.
+
+ This patch renames [HasNumericIndexGetter] to [NumericIndexedGetter],
+ for naming consistency with [IndexedGetter] and [CustomIndexedGetter].
+
+ No tests. No change in behavior.
+
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateGetOwnPropertySlotBody):
+ (GenerateGetOwnPropertyDescriptorBody):
+ (GenerateHeader):
+ (GenerateImplementation):
+ * bindings/scripts/CodeGeneratorV8.pm:
+ (GenerateHeaderNamedAndIndexedPropertyAccessors):
+ (GenerateImplementationIndexer):
+
+ * bindings/scripts/test/TestTypedArray.idl: No change in run-bindings-tests results.
+
+ * html/canvas/CanvasPixelArray.idl:
+ * html/canvas/Float32Array.idl:
+ * html/canvas/Float64Array.idl:
+ * html/canvas/Int16Array.idl:
+ * html/canvas/Int32Array.idl:
+ * html/canvas/Int8Array.idl:
+ * html/canvas/Uint16Array.idl:
+ * html/canvas/Uint32Array.idl:
+ * html/canvas/Uint8Array.idl:
+ * html/canvas/Uint8ClampedArray.idl:
+
2012-02-08 Tony Chang <[email protected]>
refactor RenderFlexibleBox to return preferred sizes of all children
Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (107180 => 107181)
--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm 2012-02-09 06:43:18 UTC (rev 107181)
@@ -433,7 +433,7 @@
&$manualLookupGetterGeneration();
}
- if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@getOwnPropertySlotImpl, " bool ok;\n");
push(@getOwnPropertySlotImpl, " unsigned index = propertyName.toUInt32(ok);\n");
@@ -444,7 +444,7 @@
} else {
push(@getOwnPropertySlotImpl, " if (ok && index < static_cast<$implClassName*>(thisObject->impl())->length()) {\n");
}
- if ($dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@getOwnPropertySlotImpl, " slot.setValue(thisObject->getByIndex(exec, index));\n");
} else {
push(@getOwnPropertySlotImpl, " slot.setCustomIndex(thisObject, index, indexGetter);\n");
@@ -527,11 +527,11 @@
&$manualLookupGetterGeneration();
}
- if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@getOwnPropertyDescriptorImpl, " bool ok;\n");
push(@getOwnPropertyDescriptorImpl, " unsigned index = propertyName.toUInt32(ok);\n");
push(@getOwnPropertyDescriptorImpl, " if (ok && index < static_cast<$implClassName*>(thisObject->impl())->length()) {\n");
- if ($dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
# Assume that if there's a setter, the index will be writable
if ($dataNode->extendedAttributes->{"CustomIndexedSetter"}) {
push(@getOwnPropertyDescriptorImpl, " descriptor.setDescriptor(thisObject->getByIndex(exec, index), ${namespaceMaybe}DontDelete);\n");
@@ -756,7 +756,7 @@
my $hasGetter = $numAttributes > 0
|| !$dataNode->extendedAttributes->{"OmitConstructor"}
|| $dataNode->extendedAttributes->{"IndexedGetter"}
- || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}
+ || $dataNode->extendedAttributes->{"NumericIndexedGetter"}
|| $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"}
|| $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotDelegate"}
|| $dataNode->extendedAttributes->{"NamedGetter"}
@@ -766,7 +766,7 @@
if ($hasGetter) {
push(@headerContent, " static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);\n");
push(@headerContent, " static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);\n");
- push(@headerContent, " static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);\n") if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) && !$dataNode->extendedAttributes->{"CustomNamedGetter"};
+ push(@headerContent, " static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);\n") if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) && !$dataNode->extendedAttributes->{"CustomNamedGetter"};
push(@headerContent, " bool getOwnPropertySlotDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n") if $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotDelegate"};
push(@headerContent, " bool getOwnPropertyDescriptorDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n") if $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotDelegate"};
$structureFlags{"JSC::OverridesGetOwnPropertySlot"} = 1;
@@ -828,7 +828,7 @@
}
# Custom getOwnPropertyNames function
- if ($dataNode->extendedAttributes->{"CustomGetPropertyNames"} || $dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"CustomGetPropertyNames"} || $dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@headerContent, " static void getOwnPropertyNames(JSC::JSObject*, JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);\n");
$structureFlags{"JSC::OverridesGetPropertyNames"} = 1;
}
@@ -947,9 +947,8 @@
if ($dataNode->extendedAttributes->{"IndexedGetter"}) {
push(@headerContent, " static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned);\n");
}
- if ($dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@headerContent, " JSC::JSValue getByIndex(JSC::ExecState*, unsigned index);\n");
-
}
# Index setter
@@ -1331,7 +1330,7 @@
AddIncludesForSVGAnimatedType($interfaceName) if $className =~ /^JSSVGAnimated/;
$implIncludes{"<wtf/GetPtr.h>"} = 1;
- $implIncludes{"<runtime/PropertyNameArray.h>"} = 1 if $dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"};
+ $implIncludes{"<runtime/PropertyNameArray.h>"} = 1 if $dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"};
AddIncludesForTypeInImpl($interfaceName);
@@ -1623,7 +1622,7 @@
my $hasGetter = $numAttributes > 0
|| !$dataNode->extendedAttributes->{"OmitConstructor"}
|| $dataNode->extendedAttributes->{"IndexedGetter"}
- || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}
+ || $dataNode->extendedAttributes->{"NumericIndexedGetter"}
|| $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotDelegate"}
|| $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"}
|| $dataNode->extendedAttributes->{"NamedGetter"}
@@ -1646,14 +1645,14 @@
push(@implContent, "}\n\n");
}
- if (($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"})
+ if (($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"})
&& !$dataNode->extendedAttributes->{"CustomNamedGetter"}) {
push(@implContent, "bool ${className}::getOwnPropertySlotByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, PropertySlot& slot)\n");
push(@implContent, "{\n");
push(@implContent, " ${className}* thisObject = jsCast<${className}*>(cell);\n");
push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);\n");
push(@implContent, " if (propertyName < static_cast<$implClassName*>(thisObject->impl())->length()) {\n");
- if ($dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@implContent, " slot.setValue(thisObject->getByIndex(exec, propertyName));\n");
} else {
push(@implContent, " slot.setCustomIndex(thisObject, propertyName, thisObject->indexGetter);\n");
@@ -1663,7 +1662,7 @@
push(@implContent, " return thisObject->methodTable()->getOwnPropertySlot(thisObject, exec, Identifier::from(exec, propertyName), slot);\n");
push(@implContent, "}\n\n");
}
-
+
if ($numAttributes > 0) {
foreach my $attribute (@{$dataNode->attributes}) {
my $name = $attribute->signature->name;
@@ -2028,12 +2027,12 @@
}
}
- if (($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) && !$dataNode->extendedAttributes->{"CustomGetPropertyNames"}) {
+ if (($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) && !$dataNode->extendedAttributes->{"CustomGetPropertyNames"}) {
push(@implContent, "void ${className}::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)\n");
push(@implContent, "{\n");
push(@implContent, " ${className}* thisObject = jsCast<${className}*>(object);\n");
push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);\n");
- if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+ if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@implContent, " for (unsigned i = 0; i < static_cast<${implClassName}*>(thisObject->impl())->length(); ++i)\n");
push(@implContent, " propertyNames.add(Identifier::from(exec, i));\n");
}
@@ -2222,8 +2221,8 @@
$implIncludes{"Node.h"} = 1;
}
}
-
- if ($dataNode->extendedAttributes->{"HasNumericIndexGetter"}) {
+
+ if ($dataNode->extendedAttributes->{"NumericIndexedGetter"}) {
push(@implContent, "\nJSValue ${className}::getByIndex(ExecState*, unsigned index)\n");
push(@implContent, "{\n");
push(@implContent, " ASSERT_GC_OBJECT_INHERITS(this, &s_info);\n");
Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm (107180 => 107181)
--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm 2012-02-09 06:43:18 UTC (rev 107181)
@@ -564,7 +564,7 @@
my $dataNode = shift;
my $interfaceName = $dataNode->name;
my $hasCustomIndexedGetter = $dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"};
- my $hasCustomIndexedSetter = $dataNode->extendedAttributes->{"CustomIndexedSetter"} && !$dataNode->extendedAttributes->{"HasNumericIndexGetter"};
+ my $hasCustomIndexedSetter = $dataNode->extendedAttributes->{"CustomIndexedSetter"} && !$dataNode->extendedAttributes->{"NumericIndexedGetter"};
my $hasCustomNamedGetter = $dataNode->extendedAttributes->{"NamedGetter"} || $dataNode->extendedAttributes->{"CustomNamedGetter"} || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"};
my $hasCustomNamedSetter = $dataNode->extendedAttributes->{"CustomNamedSetter"};
my $hasCustomDeleters = $dataNode->extendedAttributes->{"CustomDeleteProperty"};
@@ -2047,8 +2047,8 @@
my $indexer = shift;
my $interfaceName = $dataNode->name;
- # FIXME: Figure out what HasNumericIndexGetter is really supposed to do. Right now, it's only set on WebGL-related files.
- my $hasCustomSetter = $dataNode->extendedAttributes->{"CustomIndexedSetter"} && !$dataNode->extendedAttributes->{"HasNumericIndexGetter"};
+ # FIXME: Figure out what NumericIndexedGetter is really supposed to do. Right now, it's only set on WebGL-related files.
+ my $hasCustomSetter = $dataNode->extendedAttributes->{"CustomIndexedSetter"} && !$dataNode->extendedAttributes->{"NumericIndexedGetter"};
my $hasGetter = $dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"};
# FIXME: Find a way to not have to special-case HTMLOptionsCollection.
Modified: trunk/Source/WebCore/bindings/scripts/test/TestTypedArray.idl (107180 => 107181)
--- trunk/Source/WebCore/bindings/scripts/test/TestTypedArray.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/bindings/scripts/test/TestTypedArray.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/CanvasPixelArray.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/CanvasPixelArray.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/CanvasPixelArray.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -30,7 +30,7 @@
#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT || defined(V8_BINDING) && V8_BINDING
interface [
OmitConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter
] CanvasPixelArray {
#if !defined(V8_BINDING) || !V8_BINDING
Modified: trunk/Source/WebCore/html/canvas/Float32Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Float32Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Float32Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Float64Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Float64Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Float64Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Int16Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Int16Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Int16Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -26,7 +26,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Int32Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Int32Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Int32Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Int8Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Int8Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Int8Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Uint16Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Uint16Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Uint16Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Uint32Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Uint32Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Uint32Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Uint8Array.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Uint8Array.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Uint8Array.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
Modified: trunk/Source/WebCore/html/canvas/Uint8ClampedArray.idl (107180 => 107181)
--- trunk/Source/WebCore/html/canvas/Uint8ClampedArray.idl 2012-02-09 06:12:47 UTC (rev 107180)
+++ trunk/Source/WebCore/html/canvas/Uint8ClampedArray.idl 2012-02-09 06:43:18 UTC (rev 107181)
@@ -27,7 +27,7 @@
module html {
interface [
CustomConstructor,
- HasNumericIndexGetter,
+ NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,