author | Tooru Fujisawa <arai_a@mac.com> |
Wed, 23 Sep 2015 17:58:01 +0900 | |
changeset 265255 | a4cee17afa634396cb5c6e9b2a50a20cc014f686 |
parent 265254 | c63ef61734b0d7c875a0236bfe342b70f1a8140b |
child 265256 | e2c4a65fe7900c6b80be0f7ffe89fe4fb809b2cd |
push id | 65891 |
push user | arai_a@mac.com |
push date | Wed, 30 Sep 2015 16:36:04 +0000 |
treeherder | mozilla-inbound@10194aec7255 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | Gijs |
bugs | 1207490 |
milestone | 44.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/browser/modules/Windows8WindowFrameColor.jsm +++ b/browser/modules/Windows8WindowFrameColor.jsm @@ -26,17 +26,17 @@ const Windows8WindowFrameColor = { // Seems to be the default color (hardcoded because of bug 1065998) return [158, 158, 158]; } // The color returned from the Registry is in decimal form. let customizationColorHex = customizationColor.toString(16); // Zero-pad the number just to make sure that it is 8 digits. customizationColorHex = ("00000000" + customizationColorHex).substr(-8); let customizationColorArray = customizationColorHex.match(/../g); - let [unused, fgR, fgG, fgB] = customizationColorArray.map(function(val) parseInt(val, 16)); + let [unused, fgR, fgG, fgB] = customizationColorArray.map(val => parseInt(val, 16)); let colorizationColorBalance = Registry.readRegKey(HKCU, dwmKey, "ColorizationColorBalance") || 78; // Window frame base color when Color Intensity is at 0, see bug 1004576. let frameBaseColor = 217; let alpha = colorizationColorBalance / 100; // Alpha-blend the foreground color with the frame base color. let r = Math.round(fgR * alpha + frameBaseColor * (1 - alpha));