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

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

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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/code_generator_v8.py
diff --git a/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py b/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
index 93ef6055d9ed0870ed02c46c78886692ec9c4b0d..844adf9caf40984e950e7c7fb0807fe99e5d3193 100644
--- a/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
+++ b/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
@@ -202,7 +202,7 @@ class CodeGeneratorV8(CodeGeneratorV8Base):
# Add the include for interface itself
if IdlType(interface_name).is_typed_array:
template_context['header_includes'].add('core/dom/DOMTypedArray.h')
- elif interface_info['include_path']:
+ else:
template_context['header_includes'].add(interface_info['include_path'])
template_context['header_includes'].update(
interface_info.get('additional_header_includes', []))
@@ -228,8 +228,7 @@ class CodeGeneratorV8(CodeGeneratorV8Base):
dictionary, interfaces_info)
include_paths = interface_info.get('dependencies_include_paths')
# Add the include for interface itself
- if interface_info['include_path']:
- template_context['header_includes'].add(interface_info['include_path'])
+ template_context['header_includes'].add(interface_info['include_path'])
if not is_testing_target(interface_info.get('full_path')):
template_context['header_includes'].add(self.info_provider.include_path_for_export)
template_context['exported'] = self.info_provider.specifier_for_export

Powered by Google App Engine
This is Rietveld 408576698