Title: [119905] trunk/Source/WebCore
- Revision
- 119905
- Author
- [email protected]
- Date
- 2012-06-09 09:48:07 -0700 (Sat, 09 Jun 2012)
Log Message
Web Inspector: Only expand root domain in Sources/Scripts panel
https://bugs.webkit.org/show_bug.cgi?id=88135
Reviewed by Pavel Feldman.
* inspector/front-end/NavigatorView.js:
(WebInspector.NavigatorTreeOutline._treeElementsCompare.compare.typeWeight):
(WebInspector.NavigatorTreeOutline._treeElementsCompare):
(WebInspector.NavigatorFolderTreeElement.prototype.onattach):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (119904 => 119905)
--- trunk/Source/WebCore/ChangeLog 2012-06-09 16:46:49 UTC (rev 119904)
+++ trunk/Source/WebCore/ChangeLog 2012-06-09 16:48:07 UTC (rev 119905)
@@ -1,5 +1,17 @@
2012-06-09 Vsevolod Vlasov <[email protected]>
+ Web Inspector: Only expand root domain in Sources/Scripts panel
+ https://bugs.webkit.org/show_bug.cgi?id=88135
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/front-end/NavigatorView.js:
+ (WebInspector.NavigatorTreeOutline._treeElementsCompare.compare.typeWeight):
+ (WebInspector.NavigatorTreeOutline._treeElementsCompare):
+ (WebInspector.NavigatorFolderTreeElement.prototype.onattach):
+
+2012-06-09 Vsevolod Vlasov <[email protected]>
+
Web Inspector: Pretty print should respect text editor indent setting.
https://bugs.webkit.org/show_bug.cgi?id=88713
Modified: trunk/Source/WebCore/inspector/front-end/NavigatorView.js (119904 => 119905)
--- trunk/Source/WebCore/inspector/front-end/NavigatorView.js 2012-06-09 16:46:49 UTC (rev 119904)
+++ trunk/Source/WebCore/inspector/front-end/NavigatorView.js 2012-06-09 16:48:07 UTC (rev 119905)
@@ -377,11 +377,14 @@
function typeWeight(treeElement)
{
if (treeElement instanceof WebInspector.NavigatorFolderTreeElement) {
- if (treeElement.isDomain)
- return 1;
- return 2;
+ if (treeElement.isDomain) {
+ if (treeElement.titleText === WebInspector.inspectedPageDomain)
+ return 1;
+ return 2;
+ }
+ return 3;
}
- return 3;
+ return 4;
}
var typeWeight1 = typeWeight(treeElement1);
@@ -546,7 +549,7 @@
onattach: function()
{
WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);
- if (this._isDomain)
+ if (this.isDomain && this.titleText != WebInspector.inspectedPageDomain)
this.collapse();
else
this.expand();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes