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

Unified Diff: third_party/WebKit/Source/bindings/templates/interface.cpp

Issue 2043503002: Add [CEReactions] IDL attributes for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yukishiino review Created 4 years, 6 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/templates/interface.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/interface.cpp b/third_party/WebKit/Source/bindings/templates/interface.cpp
index 4090765a64cbe39cbe83b36527a3def5651a23aa..30346283498791b835c242df2c4d8e80d1909ba5 100644
--- a/third_party/WebKit/Source/bindings/templates/interface.cpp
+++ b/third_party/WebKit/Source/bindings/templates/interface.cpp
@@ -101,6 +101,9 @@ static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value,
{% set setter = indexed_property_setter %}
static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
{
+ {% if setter.is_ce_reactions %}
+ CEReactionsScope ceReactionsScope;
+ {% endif %}
{% if setter.is_custom %}
{{v8_class}}::indexedPropertySetterCustom(index, v8Value, info);
{% else %}
@@ -150,6 +153,9 @@ static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf
{% set deleter = indexed_property_deleter %}
static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info)
{
+ {% if deleter.is_ce_reactions %}
+ CEReactionsScope ceReactionsScope;
+ {% endif %}
{% if deleter.is_custom %}
{{v8_class}}::indexedPropertyDeleterCustom(index, info);
{% else %}
@@ -275,6 +281,9 @@ static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
{
if (!name->IsString())
return;
+ {% if setter.is_ce_reactions %}
+ CEReactionsScope ceReactionsScope;
+ {% endif %}
{% if setter.is_custom %}
{{v8_class}}::namedPropertySetterCustom(name, v8Value, info);
{% else %}
@@ -379,6 +388,9 @@ static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro
{
if (!name->IsString())
return;
+ {% if deleter.is_ce_reactions %}
+ CEReactionsScope ceReactionsScope;
+ {% endif %}
{% if deleter.is_custom %}
{{v8_class}}::namedPropertyDeleterCustom(name, info);
{% else %}
« no previous file with comments | « third_party/WebKit/Source/bindings/templates/attributes.cpp ('k') | third_party/WebKit/Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698