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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_utilities.py

Issue 1466563003: Make [TypeChecking=Interface] the default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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/scripts/v8_utilities.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
index 0f7b3055cf9351c2f2aaf81aae9042143922c008..cb770bb9492051f5897afb10dd0e83c8c1c585f9 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
@@ -402,14 +402,10 @@ def is_unforgeable(interface, member):
not member.is_static)
-# [TypeChecking=Interface] / [LegacyInterfaceTypeChecking]
+# [LegacyInterfaceTypeChecking]
def is_legacy_interface_type_checking(interface, member):
- if not ('TypeChecking' in interface.extended_attributes or
- 'TypeChecking' in member.extended_attributes):
- return True
- if 'LegacyInterfaceTypeChecking' in member.extended_attributes:
- return True
- return False
+ return ('LegacyInterfaceTypeChecking' in interface.extended_attributes or
+ 'LegacyInterfaceTypeChecking' in member.extended_attributes)
# [Unforgeable], [Global], [PrimaryGlobal]

Powered by Google App Engine
This is Rietveld 408576698