Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp

Issue 2321073002: binding: Let indexed interceptor falls through to named interceptor. (Closed)
Patch Set: Updated global-interface-listing expectations. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp
index 946b7ae8ffe0002226ad11b6d97171d2c9cb2a5f..ea7d0216f1833499608d2f28cc197a56f9eb934c 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp
@@ -100,47 +100,40 @@ static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::
TestIntegerIndexedV8Internal::voidMethodDocumentMethod(info);
}
-void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info)
-{
- V8TestIntegerIndexed::indexedPropertyGetterCustom(index, info);
-}
-
-void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
-{
- V8TestIntegerIndexed::indexedPropertySetterCustom(index, v8Value, info);
-}
-
-void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info)
-{
- V8TestIntegerIndexed::indexedPropertyDeleterCustom(index, info);
-}
-
void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
if (!name->IsString())
return;
- V8TestIntegerIndexed::namedPropertyGetterCustom(name, info);
+ const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
+
+ V8TestIntegerIndexed::namedPropertyGetterCustom(propertyName, info);
}
void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
{
if (!name->IsString())
return;
- V8TestIntegerIndexed::namedPropertySetterCustom(name, v8Value, info);
+ const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
+
+ V8TestIntegerIndexed::namedPropertySetterCustom(propertyName, v8Value, info);
}
-void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
+void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info)
{
if (!name->IsString())
return;
- V8TestIntegerIndexed::namedPropertyQueryCustom(name, info);
+ const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
+
+ V8TestIntegerIndexed::namedPropertyDeleterCustom(propertyName, info);
}
-void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info)
+void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
{
if (!name->IsString())
return;
- V8TestIntegerIndexed::namedPropertyDeleterCustom(name, info);
+ const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
+
+ V8TestIntegerIndexed::namedPropertyQueryCustom(propertyName, info);
}
void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::Array>& info)
@@ -148,6 +141,21 @@ void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::Array>&
V8TestIntegerIndexed::namedPropertyEnumeratorCustom(info);
}
+void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info)
+{
+ V8TestIntegerIndexed::indexedPropertyGetterCustom(index, info);
+}
+
+void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
+{
+ V8TestIntegerIndexed::indexedPropertySetterCustom(index, v8Value, info);
+}
+
+void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info)
+{
+ V8TestIntegerIndexed::indexedPropertyDeleterCustom(index, info);
+}
+
} // namespace TestIntegerIndexedV8Internal
const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedAccessors[] = {

Powered by Google App Engine
This is Rietveld 408576698