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

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

Issue 255553004: Split [StrictTypeChecking] into [TypeChecking=Interface|Nullable|String] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove redundant flag Created 6 years, 8 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
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/attributes.cpp
diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp
index d503e60014019dd4f707f9ae48b34c9fb68c7d4e..9badf4e1637be08d03ffa0ef528f2fa2c24f9d73 100644
--- a/Source/bindings/templates/attributes.cpp
+++ b/Source/bindings/templates/attributes.cpp
@@ -55,7 +55,7 @@ const v8::PropertyCallbackInfo<v8::Value>& info
attribute.is_getter_raises_exception %}
ExceptionState exceptionState(ExceptionState::GetterContext, "{{attribute.name}}", "{{interface_name}}", holder, info.GetIsolate());
{% endif %}
- {% if attribute.is_nullable and not attribute.has_strict_type_checking %}
+ {% if attribute.is_nullable and not attribute.has_type_checking_nullable %}
bool isNull = false;
{% endif %}
{# FIXME: consider always using a local variable for value #}
@@ -85,7 +85,7 @@ const v8::PropertyCallbackInfo<v8::Value>& info
| indent}}
{% endif %}
{% if attribute.is_nullable %}
- {% if attribute.has_strict_type_checking %}
+ {% if attribute.has_type_checking_nullable %}
if (!{{attribute.cpp_value}}) {
{% else %}
if (isNull) {
@@ -225,7 +225,7 @@ v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.name}}", "{{interface_name}}", holder, info.GetIsolate());
{% endif %}
{# Type checking #}
- {% if attribute.has_strict_type_checking %}
+ {% if attribute.has_type_checking_interface %}
{# Type checking for interface types (if interface not implemented, throw
TypeError), per http://www.w3.org/TR/WebIDL/#es-interface #}
if ({% if attribute.is_nullable %}!isUndefinedOrNull(v8Value) && {% endif %}!V8{{attribute.idl_type}}::hasInstance(v8Value, info.GetIsolate())) {
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698