Title: [111428] trunk/Source/WebCore
- Revision
- 111428
- Author
- [email protected]
- Date
- 2012-03-20 12:53:36 -0700 (Tue, 20 Mar 2012)
Log Message
Web Inspector: Open resource dialog scripts list should be sorted.
https://bugs.webkit.org/show_bug.cgi?id=81682
Reviewed by Pavel Feldman.
* inspector/front-end/FilteredItemSelectionDialog.js:
(WebInspector.OpenResourceDialog.compareFunction):
(WebInspector.OpenResourceDialog):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (111427 => 111428)
--- trunk/Source/WebCore/ChangeLog 2012-03-20 19:52:30 UTC (rev 111427)
+++ trunk/Source/WebCore/ChangeLog 2012-03-20 19:53:36 UTC (rev 111428)
@@ -1,3 +1,14 @@
+2012-03-20 Vsevolod Vlasov <[email protected]>
+
+ Web Inspector: Open resource dialog scripts list should be sorted.
+ https://bugs.webkit.org/show_bug.cgi?id=81682
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/front-end/FilteredItemSelectionDialog.js:
+ (WebInspector.OpenResourceDialog.compareFunction):
+ (WebInspector.OpenResourceDialog):
+
2012-03-20 Dana Jansens <[email protected]>
[chromium] Use opaque contents for paint culling
Modified: trunk/Source/WebCore/inspector/front-end/FilteredItemSelectionDialog.js (111427 => 111428)
--- trunk/Source/WebCore/inspector/front-end/FilteredItemSelectionDialog.js 2012-03-20 19:52:30 UTC (rev 111427)
+++ trunk/Source/WebCore/inspector/front-end/FilteredItemSelectionDialog.js 2012-03-20 19:53:36 UTC (rev 111428)
@@ -596,13 +596,20 @@
this._panel = panel;
this._uiSourceCodes = presentationModel.uiSourceCodes();
-
+
function filterOutEmptyURLs(uiSourceCode)
{
return !!uiSourceCode.fileName;
}
-
+
this._uiSourceCodes = this._uiSourceCodes.filter(filterOutEmptyURLs);
+
+ function compareFunction(uiSourceCode1, uiSourceCode2)
+ {
+ return uiSourceCode1.fileName.localeCompare(uiSourceCode2.fileName);
+ }
+
+ this._uiSourceCodes.sort(compareFunction);
}
/**
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes