Index: Source/bindings/templates/attributes.cpp |
diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp |
index 225b6dedf5e53bfa71d09b3550e8ce1afdbbae10..e7393c1a409ff84431f950c7336801b24634aa35 100644 |
--- a/Source/bindings/templates/attributes.cpp |
+++ b/Source/bindings/templates/attributes.cpp |
@@ -13,13 +13,7 @@ const v8::PropertyCallbackInfo<v8::Value>& info |
{% set cpp_class, v8_class = 'Element', 'V8Element' %} |
{% endif %} |
{# holder #} |
- {% if attribute.is_unforgeable and interface_name != 'Window' %} |
- {# perform lookup first #} |
- {# FIXME: can we remove this lookup? #} |
- v8::Handle<v8::Object> holder = {{v8_class}}::findInstanceInPrototypeChain(info.This(), info.GetIsolate()); |
- if (holder.IsEmpty()) |
- return; |
- {% elif not attribute.is_static %} |
+ {% if not attribute.is_static %} |
v8::Handle<v8::Object> holder = info.Holder(); |
{% endif %} |
{# impl #} |