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/templates/html/impl/impl_CSSStyleDeclaration.darttemplate

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
« no previous file with comments | « tools/dom/templates/html/dart2js/html_dart2js.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
index fac5fb276ce6637d5e1f6561bb7e0cb5cda36bc6..34c2bbab129fe697dbe9020d6bea3470a39159d5 100644
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate
@@ -104,7 +104,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);
sra1 2017/05/23 20:26:18 You could inline it here. return JS('String',
Alan Knight 2017/05/23 21:42:37 Done.
$else
« no previous file with comments | « tools/dom/templates/html/dart2js/html_dart2js.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698