Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index 3e9d7c0cb2877acaf8305b46003c0f1eec76277f..34d7d22266e047aa46d0329cbb8e5cbbdb6cc1e5 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -30,9 +30,9 @@ |
{% set property_attribute = 'static_cast<v8::PropertyAttribute>(%s)' % |
' | '.join(attribute.property_attributes) %} |
{% set only_exposed_to_private_script = 'V8DOMConfiguration::OnlyExposedToPrivateScript' if attribute.only_exposed_to_private_script else 'V8DOMConfiguration::ExposedToAllScripts' %} |
-{% set on_prototype = '1 /* on prototype */' |
+{% set on_prototype = 'V8DOMConfiguration::OnPrototype' |
if interface_name == 'Window' and attribute.idl_type == 'EventHandler' |
- else '0 /* on instance */' %} |
+ else 'V8DOMConfiguration::OnInstance' %} |
{% set attribute_configuration_list = [ |
'"%s"' % attribute.name, |
getter_callback, |
@@ -1053,7 +1053,7 @@ static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> functio |
' | '.join(method.property_attributes or ['v8::DontDelete']) %} |
{% set only_exposed_to_private_script = 'V8DOMConfiguration::OnlyExposedToPrivateScript' if method.only_exposed_to_private_script else 'V8DOMConfiguration::ExposedToAllScripts' %} |
static const V8DOMConfiguration::AttributeConfiguration {{method.name}}OriginSafeAttributeConfiguration = { |
- "{{method.name}}", {{getter_callback}}, {{setter_callback}}, {{getter_callback_for_main_world}}, {{setter_callback_for_main_world}}, &{{v8_class}}::wrapperTypeInfo, v8::ALL_CAN_READ, {{property_attribute}}, {{only_exposed_to_private_script}}, false, |
+ "{{method.name}}", {{getter_callback}}, {{setter_callback}}, {{getter_callback_for_main_world}}, {{setter_callback_for_main_world}}, &{{v8_class}}::wrapperTypeInfo, v8::ALL_CAN_READ, {{property_attribute}}, {{only_exposed_to_private_script}}, V8DOMConfiguration::OnInstance, |
}; |
V8DOMConfiguration::installAttribute({{method.function_template}}, v8::Handle<v8::ObjectTemplate>(), {{method.name}}OriginSafeAttributeConfiguration, isolate); |
{%- endmacro %} |