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

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

Issue 10833035: Quick fix to make bbs green. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index 7f56eb9a41735753284b2681a738584d73c21de2..8a8874ace76448b040f99e81878ffc43dc39fcec 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -805,7 +805,7 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
cpp_arguments.append(type_info.emit_to_native(
body_emitter,
argument,
- IsOptional(argument) and not self._IsArgumentOptionalInWebCore(node, argument),
+ (IsOptional(argument) and not self._IsArgumentOptionalInWebCore(node, argument)) or (argument.ext_attrs.get('Optional') == 'DefaultIsNullString'),
# TODO(antonm): all IDs should be renamed when database is generated.
# That will allow to get rid of argument_name argument altogether.
DartDomNameOfAttribute(argument),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698