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

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

Issue 1315723004: DevTools: [CSSP] put -webkit properties to the end of the list. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase tests Created 5 years, 4 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 | « LayoutTests/inspector/elements/styles-2/inject-stylesheet-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/ComputedStyleWidget.js
diff --git a/Source/devtools/front_end/elements/ComputedStyleWidget.js b/Source/devtools/front_end/elements/ComputedStyleWidget.js
index 974f2cf5154a034c2d926a0c3d60d958971b54d4..7a73e685eb978b80baca47f2282db92b40121551 100644
--- a/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -188,9 +188,12 @@ WebInspector.ComputedStyleWidget.prototype = {
/**
* @param {string} a
* @param {string} b
+ * @return {number}
*/
function propertySorter(a, b)
{
+ if (a.startsWith("-webkit") ^ b.startsWith("-webkit"))
+ return a.startsWith("-webkit") ? 1 : -1;
var canonicalName = WebInspector.CSSMetadata.canonicalPropertyName;
return canonicalName(a).compareTo(canonicalName(b));
}
« no previous file with comments | « LayoutTests/inspector/elements/styles-2/inject-stylesheet-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698