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

Unified Diff: Source/bindings/templates/methods.cpp

Issue 1046423002: [bindings] Remove History.(push|replace)State custom bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/bindings/templates/methods.cpp
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
index 865271c40531c6c912a1829f34c4513f3021fdff..c6f9b1f864d872800fbf0b95030175436b8c7235 100644
--- a/Source/bindings/templates/methods.cpp
+++ b/Source/bindings/templates/methods.cpp
@@ -273,6 +273,11 @@ else
{% if method.is_custom_call_epilogue %}
{{v8_class}}::{{method.name}}MethodEpilogueCustom(info, impl);
{% endif %}
+{% if method.clear_cached_attributes %}
+{% for cached_attribute in method.clear_cached_attributes %}
+V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenValue::{{cached_attribute}}(info.GetIsolate()));
+{% endfor %}
+{% endif %}
{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698