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

Unified Diff: Source/bindings/scripts/code_generator_v8.pm

Issue 158273002: Remove [OverrideBuiltins] from HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/scripts/code_generator_v8.pm
diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
index fb10155476c5611f30f9ec5469e76876d8495e80..970f86cc4bebba22b056a64c5922f969ff61b642 100644
--- a/Source/bindings/scripts/code_generator_v8.pm
+++ b/Source/bindings/scripts/code_generator_v8.pm
@@ -4081,12 +4081,10 @@ sub GenerateImplementationNamedPropertyGetter
my $code = "static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)\n";
$code .= "{\n";
if (!$interface->extendedAttributes->{"OverrideBuiltins"}) {
- $code .= " if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())\n";
- $code .= " return;\n";
- $code .= " if (info.Holder()->HasRealNamedCallbackProperty(name))\n";
- $code .= " return;\n";
$code .= " if (info.Holder()->HasRealNamedProperty(name))\n";
arv (Not doing code reviews) 2014/02/08 18:13:58 I looked into this too. I find this confusing. Ma
Inactive 2014/02/08 18:57:04 I looked at the V8 implementation and HasRealName
Inactive 2014/02/08 21:34:04 Here is the implementation of those 2 methods if y
$code .= " return;\n";
+ $code .= " if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())\n";
arv (Not doing code reviews) 2014/02/08 18:13:58 So confusing. Why is this Get and not Has?
Inactive 2014/02/08 18:57:04 This API does not have an Has equivalent for some
+ $code .= " return;\n";
$code .= "\n";
}
$code .= " ${implClassName}* collection = ${v8ClassName}::toNative(info.Holder());\n";
@@ -4123,12 +4121,10 @@ sub GenerateImplementationNamedPropertySetter
my $code = "static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info)\n";
$code .= "{\n";
if (!$interface->extendedAttributes->{"OverrideBuiltins"}) {
- $code .= " if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())\n";
- $code .= " return;\n";
- $code .= " if (info.Holder()->HasRealNamedCallbackProperty(name))\n";
- $code .= " return;\n";
$code .= " if (info.Holder()->HasRealNamedProperty(name))\n";
$code .= " return;\n";
+ $code .= " if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())\n";
+ $code .= " return;\n";
$code .= "\n";
}

Powered by Google App Engine
This is Rietveld 408576698