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

Unified Diff: tools/dom/scripts/systemnative.py

Issue 589253002: Revert "Chrome 38 script changes from integration branch" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/src/dart2js_KeyEvent.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index c6c732657726b6354777a7bd14bfc30887ac05d8..54b3ce340bde4e10a2795f01335f4fe3d9a9204b 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -1339,8 +1339,10 @@ class DartiumBackend(HtmlDartGenerator):
needs_custom_element_callbacks = False
# TODO(antonm): unify with ScriptState below.
- call_with = ext_attrs.get('CallWith', '') + ext_attrs.get('ConstructorCallWith', '')
- requires_stack_info = 'ScriptArguments' in call_with or 'ScriptState' in call_with
+ requires_stack_info = (ext_attrs.get('CallWith') == 'ScriptArguments|ScriptState' or
+ ext_attrs.get('ConstructorCallWith') == 'ScriptArguments|ScriptState' or
+ ext_attrs.get('CallWith') == 'ScriptArguments&ScriptState' or
+ ext_attrs.get('ConstructorCallWith') == 'ScriptArguments&ScriptState')
if requires_stack_info:
raises_exceptions = True
cpp_arguments = ['&state', 'scriptArguments.release()']
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/src/dart2js_KeyEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698