Index: third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
diff --git a/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
index f9534945814c8911f950d38704774472bbbdaf92..708bfb91260c3d3b999fb5730bdb987236def0e5 100644 |
--- a/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
+++ b/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
@@ -678,10 +678,10 @@ static const V8DOMConfiguration::AttributeConfiguration {{method.name}}OriginSaf |
{% set getter_callback_for_main_world = '%sForMainWorld' % getter_callback %} |
{% set setter_callback_for_main_world = '%sForMainWorld' % setter_callback |
if not method.is_unforgeable else 'nullptr' %} |
- {"{{method.name}}", {{getter_callback_for_main_world}}, {{setter_callback_for_main_world}}, nullptr, &{{v8_class}}::wrapperTypeInfo, {{property_attribute}}, {{property_location(method)}}, {{holder_check}}, V8DOMConfiguration::MainWorld}, |
- {"{{method.name}}", {{getter_callback}}, {{setter_callback}}, nullptr, &{{v8_class}}::wrapperTypeInfo, {{property_attribute}}, {{property_location(method)}}, {{holder_check}}, V8DOMConfiguration::NonMainWorlds}} |
+ {"{{method.name}}", {{getter_callback_for_main_world}}, {{setter_callback_for_main_world}}, &{{v8_class}}::wrapperTypeInfo, {{property_attribute}}, {{property_location(method)}}, {{holder_check}}, V8DOMConfiguration::MainWorld}, |
+ {"{{method.name}}", {{getter_callback}}, {{setter_callback}}, &{{v8_class}}::wrapperTypeInfo, {{property_attribute}}, {{property_location(method)}}, {{holder_check}}, V8DOMConfiguration::NonMainWorlds}} |
{% else %} |
- {"{{method.name}}", {{getter_callback}}, {{setter_callback}}, nullptr, &{{v8_class}}::wrapperTypeInfo, {{property_attribute}}, {{property_location(method)}}, {{holder_check}}, V8DOMConfiguration::kAllWorlds} |
+ {"{{method.name}}", {{getter_callback}}, {{setter_callback}}, &{{v8_class}}::wrapperTypeInfo, {{property_attribute}}, {{property_location(method)}}, {{holder_check}}, V8DOMConfiguration::kAllWorlds} |
{% endif %} |
}; |
for (const auto& attributeConfig : {{method.name}}OriginSafeAttributeConfiguration) |
@@ -902,7 +902,6 @@ v8::Local<v8::Object> {{v8_class}}::findInstanceInPrototypeChain(v8::Local<v8::V |
{% endblock %} |
- |
{##############################################################################} |
{% block partial_interface %} |
{% if has_partial_interface %} |
@@ -941,3 +940,4 @@ void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt |
{% endfor %} |
{% endif %} |
{% endblock %} |
+ |
Yuki
2017/05/09 06:06:31
nit: Remove this empty line.
nverne
2017/05/10 02:11:49
Done
|