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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 2644703002: DevTools: Show CSS variables in the inherited properties cascade (Closed)
Patch Set: test Created 3 years, 11 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: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
index b969bd7ab66edec2662e428db1ee340620429200..380e726f82493e697f1520a550ea959c9a9bb59e 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -214,6 +214,8 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
* @return {number}
*/
function propertySorter(a, b) {
+ if (a.startsWith('--') ^ b.startsWith('--'))
lushnikov 2017/01/23 05:13:20 fyi: "^" is a bit-xor, not a logical xor, so it mi
+ return a.startsWith('--') ? 1 : -1;
if (a.startsWith('-webkit') ^ b.startsWith('-webkit'))
return a.startsWith('-webkit') ? 1 : -1;
var canonical1 = SDK.cssMetadata().canonicalPropertyName(a);

Powered by Google App Engine
This is Rietveld 408576698