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

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

Issue 2896393002: Remove JS_CONST from CssStyleDeclaration, causes DDC problems (Closed)
Patch Set: Created 3 years, 7 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: tools/dom/scripts/css_code_generator.py
diff --git a/tools/dom/scripts/css_code_generator.py b/tools/dom/scripts/css_code_generator.py
index 819a9239a4bf600e545aca8564c51441266ec89e..7d7fa207ec6615971987447c9e3d8a9f7daa8e1a 100644
--- a/tools/dom/scripts/css_code_generator.py
+++ b/tools/dom/scripts/css_code_generator.py
@@ -195,7 +195,7 @@ $endif
$if DART2JS
var replacedMs = JS('String', r'#.replace(/^-ms-/, "ms-")', hyphenated);
- var fToUpper = const JS_CONST(
+ var fToUpper = JS('',
r'function(_, letter) { return letter.toUpperCase(); }');
return JS('String', r'#.replace(/-([\da-z])/ig, #)', replacedMs, fToUpper);
$else

Powered by Google App Engine
This is Rietveld 408576698