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

Unified Diff: Source/bindings/scripts/v8_types.py

Issue 386353002: Implement reflected attributes of HTMLMarqueeElement in Blink-in-JS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/bindings/scripts/v8_types.py
diff --git a/Source/bindings/scripts/v8_types.py b/Source/bindings/scripts/v8_types.py
index 46b005222f31cbda0999e237c8251aaa55bd2d2f..7ad89b54b406ac6d9f16c728b82f35cccbc84d7c 100644
--- a/Source/bindings/scripts/v8_types.py
+++ b/Source/bindings/scripts/v8_types.py
@@ -539,7 +539,7 @@ def preprocess_idl_type_and_value(idl_type, cpp_value, extended_attributes):
idl_type.base_type in ['unsigned long', 'unsigned short']):
cpp_value = cpp_value.replace('getUnsignedIntegralAttribute',
'getIntegralAttribute')
- cpp_value = 'std::max(0, %s)' % cpp_value
+ cpp_value = 'std::max(0, static_cast<int>(%s))' % cpp_value
return idl_type, cpp_value

Powered by Google App Engine
This is Rietveld 408576698