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

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

Issue 35513002: Revert "Revert breaking CL" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | tools/dom/src/native_DOMImplementation.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 5aa06eef28629804c7a0bf57f0a53cf2eac25eac..1f45b15f68dc40654918ba007261dc558d506f69 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -864,7 +864,7 @@ class DartiumBackend(HtmlDartGenerator):
if requires_script_state:
body_emitter.Emit(
- ' ScriptState* currentState = ScriptState::current();\n'
+ ' ScriptState* currentState = DartUtilities::currentScriptState();\n'
' if (!currentState) {\n'
' exception = Dart_NewStringFromCString("Failed to retrieve a script state");\n'
' goto fail;\n'
@@ -891,7 +891,7 @@ class DartiumBackend(HtmlDartGenerator):
self._cpp_impl_includes.add('"ScriptCallStack.h"')
body_emitter.Emit(
'\n'
- ' ScriptState* currentState = ScriptState::current();\n'
+ ' ScriptState* currentState = DartUtilities::currentScriptState();\n'
' if (!currentState) {\n'
' exception = Dart_NewStringFromCString("Failed to retrieve a script state");\n'
' goto fail;\n'
@@ -914,10 +914,7 @@ class DartiumBackend(HtmlDartGenerator):
' Dart_Handle customArgument = Dart_GetNativeArgument(args, $INDEX);\n'
' RefPtr<ScriptArguments> scriptArguments(DartUtilities::createScriptArguments(customArgument, exception));\n'
' if (!scriptArguments)\n'
- ' goto fail;\n'
- ' RefPtr<ScriptCallStack> scriptCallStack(DartUtilities::createScriptCallStack());\n'
- ' if (!scriptCallStack->size())\n'
- ' return;\n',
+ ' goto fail;\n',
INDEX=len(arguments) + 1)
if needs_custom_element_callbacks:
« no previous file with comments | « no previous file | tools/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698